Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default conditional formatting from a list

How do I conditionally format a cell if the data in the cell matches any cell
in a list of 100?

For example:

Col A Col B
bob art
jim bob
kirk will
greg sam

I want to format the cells in Col A such that "bob" will fill red with white
letters if his name shows up in Col B
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 419
Default conditional formatting from a list

casey,

1. Select the cells in Column A that you want to have this conditional
formatting.
2. Click Format Conditional Formatting...
3. Change "Cell Value Is" to "Formula Is"
4. Enter the following formula (using your example posted: Range B1:B4):
=not(isna(vlookup(A1,$B$1:$B$4,1,0)))
(that formula assumes that in your selection (A1:A4), cell A1 is the active
cell)
5. Set your formatting accordingly.

HTH,

Conan




"casey" wrote in message
...
How do I conditionally format a cell if the data in the cell matches any
cell
in a list of 100?

For example:

Col A Col B
bob art
jim bob
kirk will
greg sam

I want to format the cells in Col A such that "bob" will fill red with
white
letters if his name shows up in Col B



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default conditional formatting from a list

Works perfectly, Conan. Thank you.

And since you answered so well, I have a follow-up question.

What if I have another condition such as:

Col A Col B Col C Col D
Row 1 family_b bob family_b art
Row 2 jim family_b bob
Row 3 kirk family_d will
Row 4 greg family_e sam

1) I would like to turn "bob" in Col B red if $A$1 (family_b) matches Col C
AND if "bob" in Col B (B1) matches Col D.

2) If only "bob" in Col B matches Col D, then it turns "bob" in Col B orange.



"Conan Kelly" wrote:

casey,

1. Select the cells in Column A that you want to have this conditional
formatting.
2. Click Format Conditional Formatting...
3. Change "Cell Value Is" to "Formula Is"
4. Enter the following formula (using your example posted: Range B1:B4):
=not(isna(vlookup(A1,$B$1:$B$4,1,0)))
(that formula assumes that in your selection (A1:A4), cell A1 is the active
cell)
5. Set your formatting accordingly.

HTH,

Conan




"casey" wrote in message
...
How do I conditionally format a cell if the data in the cell matches any
cell
in a list of 100?

For example:

Col A Col B
bob art
jim bob
kirk will
greg sam

I want to format the cells in Col A such that "bob" will fill red with
white
letters if his name shows up in Col B




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Conditional formatting from list on separate sheet Supe Excel Discussion (Misc queries) 2 May 15th 07 04:19 PM
Conditional formatting - multi-item text list String Excel Worksheet Functions 4 August 5th 06 02:06 PM
using conditional formatting to mark repeated names in list? Mansure Morgan Excel Discussion (Misc queries) 3 June 2nd 06 01:06 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 05:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"