diazmlogistics
Board Regular
- Joined
- Nov 23, 2012
- Messages
- 56
I am trying to write an if statement to populate 1 of 3 return messages. "Early", "On-Time", or "Late". The Problem is the time passes over more than one day. If we arrive between the planned arrive and planned depart, we are "On-Time". Before the planned arrive, "Early" and after the planned depart "Late". Looking for help with one formula that will work for all three scenarios.
Current formula not working:
=IF(J64="","",(IF((L64+(M$1/60/24))>=J64,(IF((L64-(1.5/24))>J64,"Early","On-Time")),"Late")))
j64=Actual Arrival
M$1=0
L64= Planned depart
Thank You
[TABLE="class: grid, ******* 500"]
<tbody>[TR]
[TD]Actual Arrive
Dynamic[/TD]
[TD]Planned Arrive
Static[/TD]
[TD]Planned Depart
Static[/TD]
[TD]Statement[/TD]
[/TR]
[TR]
[TD]23:00[/TD]
[TD]23:45[/TD]
[TD]01:15[/TD]
[TD]Early[/TD]
[/TR]
[TR]
[TD]00:45[/TD]
[TD]00:00[/TD]
[TD]01:30[/TD]
[TD]On-Time[/TD]
[/TR]
[TR]
[TD]02:15[/TD]
[TD]00:30[/TD]
[TD]02:00[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Current formula not working:
=IF(J64="","",(IF((L64+(M$1/60/24))>=J64,(IF((L64-(1.5/24))>J64,"Early","On-Time")),"Late")))
j64=Actual Arrival
M$1=0
L64= Planned depart
Thank You
[TABLE="class: grid, ******* 500"]
<tbody>[TR]
[TD]Actual Arrive
Dynamic[/TD]
[TD]Planned Arrive
Static[/TD]
[TD]Planned Depart
Static[/TD]
[TD]Statement[/TD]
[/TR]
[TR]
[TD]23:00[/TD]
[TD]23:45[/TD]
[TD]01:15[/TD]
[TD]Early[/TD]
[/TR]
[TR]
[TD]00:45[/TD]
[TD]00:00[/TD]
[TD]01:30[/TD]
[TD]On-Time[/TD]
[/TR]
[TR]
[TD]02:15[/TD]
[TD]00:30[/TD]
[TD]02:00[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]