Extending conditional formatting

FergusonRK

New Member
Joined
Jul 26, 2007
Messages
14
Hi Folks,

Excel Newbie needs to know if there is a way to do conditional formatting on more than three data elements... Excel only provides the capability to select three elements, can this be increased by some configuration setting within Excel or by script?

Thanks much,

Fergie
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You can get it to four by using the default format.

If you only want text colours, you can get a fifth by using custom formats

Otherwise, I think you'll need VBA.
 
Upvote 0
Not sure if this helps but its something i use:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value <= 10 Then Target.Interior.ColorIndex = 1
If Target.Value > 10 And Target.Value <= 20 Then Target.Interior.ColorIndex = 3
If Target.Value > 20 And Target.Value <= 30 Then Target.Interior.ColorIndex = 4
If Target.Value > 30 And Target.Value <= 40 Then Target.Interior.ColorIndex = 5
If Target.Value > 40 And Target.Value <= 50 Then Target.Interior.ColorIndex = 6
If Target.Value > 50 And Target.Value <= 60 Then Target.Interior.ColorIndex = 7
End Sub

I have 5 conditions but i imagine you could add as many as required.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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