wrt1mea
asked on
Conditional Formatting with a List
I have a list of values that I want conditional formatting to use to highlight certain text.
Sheet 2 A1:A13 contains the values that I want to search through each cell in Column H. I want to highlight the text as red
Sheet 2 A1:A13 contains the values that I want to search through each cell in Column H. I want to highlight the text as red
If I understood correctly.....
select column H and invoke conditional formatting...
assuming Excel 2007 or later, that would be through Home|Conditional Formatting|New Rule
Then select use a formula to determine which cells to format..
enter formula:
=MATCH(H1,$A$1:$A$13,0)
where H1 is top most cell you selected in column H.
then choose Format and select from Font tab.
If you are using pre-Excel2007, then go to Format|Conditional Formatting and choose Formula Is, then do as above.
If A1:A13 is in a separate sheet from column H, then first name the A1:A13 range by selecting it, and typing a name in the Name Box (just to the left of the formula bar at the top)... call it something like MyList... then substitute that in the formula e.g.
=MATCH(H1,MyList,0)
Hope it helps.
select column H and invoke conditional formatting...
assuming Excel 2007 or later, that would be through Home|Conditional Formatting|New Rule
Then select use a formula to determine which cells to format..
enter formula:
=MATCH(H1,$A$1:$A$13,0)
where H1 is top most cell you selected in column H.
then choose Format and select from Font tab.
If you are using pre-Excel2007, then go to Format|Conditional Formatting and choose Formula Is, then do as above.
If A1:A13 is in a separate sheet from column H, then first name the A1:A13 range by selecting it, and typing a name in the Name Box (just to the left of the formula bar at the top)... call it something like MyList... then substitute that in the formula e.g.
=MATCH(H1,MyList,0)
Hope it helps.
ASKER
The values are exerpts from the values in column H....will that change the formula?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got this one to work, =LOOKUP(9.99999E+307,SEARC H($A$1:$A$ 13,H1))
But it highlights the the entire text in the cell, not just the text that contains the specific values.
But it highlights the the entire text in the cell, not just the text that contains the specific values.
You can't highlight just the specific text within the cell, the whole cell will get highlighted..... not with Conditional Formatting....
You would probably need VBA to do that, and it's not in my scope....
You would probably need VBA to do that, and it's not in my scope....
If whole value you could use the MATCH function in a formula based Conditional Formatting like this:
=MATCH(H1,$A$1:$A$13,0)
Thanks
Rob H