Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
Conditional formatting from list on separate sheet | Excel Discussion (Misc queries) | |||
Conditional formatting - multi-item text list | Excel Worksheet Functions | |||
using conditional formatting to mark repeated names in list? | Excel Discussion (Misc queries) | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions |