Combining OR and IF with Conditional Formatting

aragno

New Member
Joined
Mar 20, 2006
Messages
3
I am trying to accomplish the following.

I have date and times in cells A1, B1, C1, D1
A1 = 2014-Mar-01 20:30
B1 = 2014-Mar-02 00:06
C1 =
D1 = 2014-Mar-03 17:00
E1 = 2014-Mar-03 18:00

I am seeking a conditional format that would format cell D1 if D1 is less than C1, B1, or A1, but NOT format if C1, B1, or A1 is empty.

I feel like I need to combine both IF and OR to make this happen but I can't figure out the structure.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You need to include AND function
maybe
=AND(OR(D1< A1,D1< B1,D1< C1),AND(A1< >"",B1< >"",C1< >""))

Remove the spaces after "< " signs then test it and check
Cheers
 
Last edited:
Upvote 0
Select D1

Conditional Formatting
New Rule
Use a formula to determine...

=(AND(D1 < C1, D1 < B1, D1 < A1, C1 < > "", B1 < > "", A1 < > ""))
format as required

Use Format painter to copy to other cells
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,803
Members
449,468
Latest member
AGreen17

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