IF and AND with Dates and Times

Francis85

New Member
Joined
Feb 26, 2014
Messages
8
Hello,

I work for a Transport company. We send notification to our customers as to when we will be delivering with a given window of 2.5 hours.

Our planned delivery date/time is (G3) 05/05/15 08:19
Our start window for this is (H3) 05/05/15 07:49
Our end window for this is (I3) 05/05/15 10:19
We actually arrived at (F3) 05/05/15 09:25

I would like a formula to show in cell (J3) 'IN TIME' if it is within this window.

I was thinking it was =IF(F3>=H3 and <=I3,"In Time","Late"), doesn't like it though. I've played with a few variations, but I cant think of another way round.
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,586
Messages
6,125,689
Members
449,250
Latest member
azur3

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