Another conditional formatting problem!!!

neilforrow

New Member
Joined
Sep 30, 2004
Messages
16
Morning...

have spent some time looking at old posts and cant find what I am looking for...

I am trying to conditional format a sheet, where, if a a value is entered the cell color changes. So using conditional formatting, easy enough...

although I have 7 different values for 7 different colors, and the conditional formatting seems to only cope with 3 sets of values...

Is there a way of setting up multiple (ie more than 3) conditional formatting conditions are.

eg:

NY = Red
HM = Yellow
KH = Green
EG = Blue
etc...

Thanks for the help in advance...
 
If you run the code it will produce a grid with all of the colours with their related index numbers.

As for the cells remaining a particular colour. That is correct because remember this isn't conditionally formatting cells it is applying a background colour based on a cell value.
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
It doesn't in my code - it will return the cell to its original colour (ie no fill colour).

It's the final Case Else statement that does this - have you retained this in your production code?
 
Upvote 0

Forum statistics

Threads
1,215,334
Messages
6,124,323
Members
449,154
Latest member
pollardxlsm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top