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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

konew1

Well-known Member
Joined
Oct 17, 2007
Messages
2,288
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:

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,425
Office Version
  1. 2019
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,517
Messages
5,837,809
Members
430,516
Latest member
thaling

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
Top