Conditional Formatting for Date and Time in separate cells

LibbyMcD

New Member
Joined
Jul 25, 2018
Messages
1
I would like to use conditional formatting to highlight cells that have an actual date and time after the originally scheduled date and time.

For example, column 4 row 3, the delivery time is 18 minutes late - I'd like to highlight that. And in row 4, it's a day late, that would also need to be highlighted.

I'm having trouble finding anything online that would help with this since it's not just date, and not just time, and they are in separate columns. Any help would be much much much appreciated! :)

Sched DateSched TimeActual DateActual Time
7/25/181:00 pm7/25/1812:55 pm
7/25/181:00 pm7/25/181:18 pm
7/24/1810:30 am7/25/189:00 am
7/24/181:00 pm7/24/1811:53 am

<tbody>
</tbody>
 

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.
Welcome to the Board!

Let's say that you grid above is in the range A1:D5.
Then select cells C2:D2, and enter this Conditional Formatting formula:
Code:
=or($C2>$A2,and($A2=$C2,$D2>$B2))
and then choose your highlighting color option.

I think this should do what you want.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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