Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Excel cell color based on other field

Status
Not open for further replies.

DonS100

Programmer
Dec 4, 2001
104
0
0
US
I'm going to push some raw data into a excel worksheet from access. I then want to have another worksheet that is better formatted for the user but based on the first tab. Lets say the the raw data worksheet has 200 rows with 2 column each. The first column in is for the product description and the second has a color value in it.
Example:
Column1/Column2
Row1=ProductA/Blue
Row2=ProductB/Red

The second worksheet would have a cell with the text ProductA in it, the cell would be blue. The cell below would have the text ProductB and cell color would be red.

How can you do this?

Thanks

Don
 
Click Format, Conditional Formatting.

Pop in some formulas akin to =IF(A1="ProductA",True,False) and then modify the formatting to give you the desired effect.
 
How many colours are going to be specified in column 2? If it's more than 3 then conditional formatting won't do it.

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top