Vlookup and Conditional Formatting

E

exceluser

When put in the conditional formatting dialogue box, this formula
=VLOOKUP(a1,$b1:$c50,2,FALSE)=1 for box 1 w/color code red,
(a1,$b1:$c50,2,FALSE)=2 for box 2 w/color code blue, (a1,$b1:$c50,2,FALSE)=3
for box 3 w/color code green will take 50 state abbreviations (singular
occurence only) and color code them according to time zone. (The remainder of
states have an auto background color of yellow).

Right now, only one instance of each state name is being colored. How do I
set this formula to work for multiple occurences of each same state name for
all the 50 states? My tables usually have 10 to 20 occurences of each state
each and i would like each state colored accordingly.

Any help is sincerely appreciated. Thank you very much for your time. I've
been at this for days!!!! Exceluser
 
M

Max

Think you need to "fix" the table array,
viz put in "$" fully, as: $b$1:$c$50

For example, your CF formula:
=VLOOKUP(a1,$b1:$c50,2,FALSE)=1

should read as:
=VLOOKUP(a1,$b$1:$c$50,2,FALSE)=1

Similarly for the other 2 vlookups

---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top