corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Excel Gurus


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Excel Gurus
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
23rd Jan 13 at 09:19   View User's Profile U2U Member Reply With Quote

Im after some help with a formula.

I have a column of information C2 - C200

Im entering information into columns A2-A200

If any of the text matches the text in C2-C200 I would like to fill the cell to the right with a red background (B2-B200).

Anyone know how this can be done?
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
23rd Jan 13 at 09:20   View Garage View User's Profile U2U Member Reply With Quote

Condition formatting and there should be something in there that you can use as your match condition.

If not, find a suitable string function to do the match and use an IF() to give you a 1 or 0 or similar, and conditionally format on that.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jan 13 at 09:31   View Garage View User's Profile U2U Member Reply With Quote

Conditional formatting is the one here, it'll do it no problem
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
23rd Jan 13 at 09:31   View User's Profile U2U Member Reply With Quote

any ideas?
Ive tried:
=EXACT(A2, C2:C210)

*edit*, just trying to get a true/false to begin with.
The problem with the above is its only comparing A2 to C2, where it should be comparing A2 to C2:C200


[Edited on 23-01-2013 by Bart]
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jan 13 at 09:42   View Garage View User's Profile U2U Member Reply With Quote

I see, stick this in D2 and drag it down (hide it if you don't want to see it):

=IF(COUNTIF($C$2:$C$200,A1),"True","False")

Then do your conditional formatting based on that?

edit - the $'s are important to fix the reference to C2:C200, otherwise then you drag it down it becomes C3:C201, C4:C202 etc.

[Edited on 23-01-2013 by pow]
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jan 13 at 09:49   View Garage View User's Profile U2U Member Reply With Quote

=IF(COUNTIF($C$2:$C$200,A2),"True","False")

Sorry Bartm copy the above, I've put A1 in the previous one
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
23rd Jan 13 at 09:52   View Garage View User's Profile U2U Member Reply With Quote

Do you want one single cell to compare to the column?

Or the each cell in the column to compare the cell adjacent to it in the other column?

Doesn't need $ as I see it.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jan 13 at 09:53   View Garage View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Bart

The problem with the above is its only comparing A2 to C2, where it should be comparing A2 to C2:C200



From what I understand A2, A3, A4 etc must compare to C2:C200 - hence the $'s when you drag the formula down
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
23rd Jan 13 at 09:56   View Garage View User's Profile U2U Member Reply With Quote

So you want each cell in the A column to be compared to the whole of column C?

Not sure there's a quick way to type that but that sounds to me like a hidden cell containing CONCAT(C2, C3, C4 .. C200) and compare against that.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
23rd Jan 13 at 10:06   View Garage View User's Profile U2U Member Reply With Quote

My solution works Ian, I tested it

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
is there a program that...... chris_uk Geek Day 6 1818
16th Jun 05 at 00:47
by Dan B
 
excel gurus paul.mitchell1984 Geek Day 2 364
13th Jun 07 at 12:52
by paul.mitchell1984
 
need an excel like programme (for free) Shane Geek Day 12 1690
13th May 08 at 14:55
by pow
 
Microsoft Excel strick206 Geek Day 10 1403
6th Jul 11 at 14:46
by Sam
 
Need help from excel gurus Gareth Geek Day 11 307
22nd Jul 11 at 22:05
by Ian
 

Corsa Sport » Message Board » Off Day » Geek Day » Excel Gurus 28 database queries in 0.0122199 seconds