Conditional Formatting

James__S

Active Member
Joined
Jan 26, 2014
Messages
332
Hi

What formula would i insert into the "Use a formula to determine which cells to format" for conditional Formatting

I highlighted range B3:F3 which i want to turn Green if the following is True. I used the following formula
Code:
=AND(D3="YES",E3="YES",F3="YES")

The only Cell green is B3. I need to highlight B3:F3 if true Green or RED if False

Thanks
JS
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
If you want to highlight B3:F3 in Green if =AND(D3="YES",E3="YES",F3="YES") returns TRUE and highlight B3:F3 in Red if =AND(D3="YES",E3="YES",F3="YES") returns FALSE, try this:

Highlight B3:F3 > Conditional Formatting > New Rule > Use a formula
=AND($D3="YES",$E3="YES",$F3="YES")
Format: Fill Green > OK > OK

Highlight B3:F3 > Conditional Formatting > New Rule > Use a formula
=AND($D3="YES",$E3="YES",$F3="YES")=FALSE
Format: Fill Red > OK > OK
 
Upvote 0
Thank you

What would i need to add to the formula that if the range B3:F3 is blank. If blank/no text than that range is white

If say have it formatted Red and remove all the text the range B3:F3 will still remain Red

Thanks

 
Last edited:
Upvote 0
You're welcome.

Change that second formula (the red formula) to this:

=AND(AND($D3="YES",$E3="YES",$F3="YES")=FALSE,COUNTBLANK($B3:$F3)<>5)
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,539
Members
449,088
Latest member
RandomExceller01

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