More than 3 conditional formats

BMD

Board Regular
Joined
Oct 5, 2005
Messages
211
To add to j_smit question I have

=$B27="No"
I trun the row gray.
Now they say I need to do
=$G27="Pass" trun the text green
=$G27="pass" and =$I27={"Major","Maj"} turn to yellow
=$G27="Fail" trun it red

I'm now upto four conditions and I think excel only allows three it that ture or can I keep going and how.

Thanks,
Bruce.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi, I split this off into a separate thread :)

You are correct, currently Excel only allows 3 conditional formats. For more than 3 conditions, you have to use a macro.

Would this be used on all cells in a certain range, or only row 27 (as in your example above)?
 
Upvote 0
OK THEN

#If (ActiveCell.Worksheet.g3 = "Pass") Then
Run (green)

Sub green()
Range("A3:O3").Select
Selection.Font.ColorIndex = 10
End Sub

The problem is with the activecell can I just say if you type in pass it will do this and if you type in fail it will do that and it you type in pass and maj it will do another.....

Bruce.
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,568
Members
453,053
Latest member
Kiranm13

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