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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

konew1

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

Watch MrExcel Video

Forum statistics

Threads
1,130,448
Messages
5,642,218
Members
417,262
Latest member
andrewd1

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