Reputation: 89
I reviewed below answer. it's really working for me when i used david's answer. But i have slight different question.
I want to highlight A1,B1,C1,D1 and E1 when condition is true for A1. As per the below answer it highlighting only values in column A
Regards, Ramana
Upvotes: 0
Views: 8164
Reputation: 7304
Assuming you should highlight columns A:E
in case A1
has "abc" value, you should do the following:
A:E
).=IF($A1="abc",1,0)=1
You're done. The above code will highlight ANY row for A:E
columns in case corresponding cell in A has "abc". Modify condition as you wish.
Sample file: https://www.dropbox.com/s/eyx2un2v5r5z25w/CondFormatA-E.xlsx
Upvotes: 2
Reputation: 46341
If you are using this formula for column A
=NOT(ISNA(VLOOKUP(A1,$B:$B,1,FALSE)))
then just amend it by putting $ in front of A1, i.e.
=NOT(ISNA(VLOOKUP($A1,$B:$B,1,FALSE)))
and apply that conditional format to all 5 columns A to E
Note: it might be simpler to use MATCH - this should give the same result
=MATCH($A1,$B:$B,0)
Upvotes: 0