Conditional Formatting with IF/OR

SimonHughes

Well-known Member
Joined
Sep 16, 2009
Messages
516
Office Version
  1. 365
Platform
  1. Windows
Hello, I have worksheets that can range from from cells A1 to U2000 (the row count is variable). I want to conditionally format the rows from A2 down with red font if the word Fail appears in cells C2:C2000 or D2:D2000.
I should know that but cant get it right, thanks in advance for your help.
 
If you select rows 2:2000, then just enter this Conditional Formatting formula (you write it as it pertains to the first row in your selection, and Excel will update it for all others):
Excel Formula:
=OR($C2="Fail",$D2="Fail")
and choose your red formatting color.

Note that you have to put the "$" in front of the column references to lock that down, so all cells in that row look at columns C and D.
 
Upvote 0
Solution
If you select rows 2:2000, then just enter this Conditional Formatting formula (you write it as it pertains to the first row in your selection, and Excel will update it for all others):
Excel Formula:
=OR($C2="Fail",$D2="Fail")
and choose your red formatting color.

Note that you have to put the "$" in front of the column references to lock that down, so all cells in that row look at columns C and D.
Thannk Joe, perfect, problem solved.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

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