not using conditional formating

mikep

New Member
Joined
Oct 27, 2002
Messages
2
I want to format several cell to produce a colour map of the set of information over 1000 cell in all. I can colour these cells using a macro to producr the colour map. This is slow, How can I conditional format each cell with 10 or so condtions? The conditional format on the drop down menu only has 3 conditions. Can a cell be formated using the if statment form the (ie =if cell value x the format cell colour red, if cell value y the format cell colour blue.

Any heple woulf be nice
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
On 2002-10-28 08:41, mikep wrote:
I want to format several cell to produce a colour map of the set of information over 1000 cell in all. I can colour these cells using a macro to producr the colour map. This is slow, How can I conditional format each cell with 10 or so condtions? The conditional format on the drop down menu only has 3 conditions. Can a cell be formated using the if statment form the (ie =if cell value x the format cell colour red, if cell value y the format cell colour blue.

Any heple woulf be nice

As far as I know the limit for conditional formats is 3 with a pseudo 4th if you format the default cell colour as though it were another condition.

What you need to do is set up a macro on the worksheet which updates on entry of a value and then changes the cell colour. e.g.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Dimension the colour parameter

Select Case 'Specify conditions
Case ? .ColorIndex = (colourindexnumber)
etc.
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,788
Members
449,049
Latest member
greyangel23

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