Cross-referencing schedules

NewbieToNerding

New Member
Joined
Oct 2, 2018
Messages
3
Hi!

I have two schedules - a posted schedule, and one pulled from our time keeping system. I would love to set up a formula that will post the following:

If the times listed on both schedules match, or are within 6 minutes of each other, the cell will read "on time"
If the times listed on the Posted Schedule is 7 minutes or more before the time on the Actual Schedule, the cell will read "late"
If the time listed on the Posted Schedule is 7 minutes or more after the time on the Actual Schedule, the cell will read "early"


So far I've been able to piece this together:

=IFERROR(IF(C7>S7+TIME(0,6,0),"Early",IF(C7<S7+TIME(0,6,0),"Late",IF(OR(C7=S7+TIME(0,6,0),C7=S7-TIME(0,6,0)),"on time"))),"check sch'l")


Thank you!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
NtN,

I only used 6 minutes in the below formula. I.e. If the actual schedule is within 6 minutes (early or late) it's "On Time". If it is greater than 6 minutes on either end it's either "early" or "late". Column A contains Posted Schedule, Column B is Actual.

=IF(ABS(A2-B2)<=TIME(0,6,0),"On Time",IF(A2-B2>TIME(0,6,0),"Early","Late"))
 
Upvote 0
NtN,

I only used 6 minutes in the below formula. I.e. If the actual schedule is within 6 minutes (early or late) it's "On Time". If it is greater than 6 minutes on either end it's either "early" or "late". Column A contains Posted Schedule, Column B is Actual.

=IF(ABS(A2-B2)<=TIME(0,6,0),"On Time",IF(A2-B2>TIME(0,6,0),"Early","Late"))


Thank you NNFM! This is perfect - working great for my needs.

Funny, my original post didn't paste my entire formula. Guess I picked the right username... :)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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