helpneeded2
Board Regular
- Joined
- Jun 25, 2021
- Messages
- 110
- Office Version
- 365
- Platform
- Windows
I have a sheet that has a column for an Arrival Time (column E) and a Departure Time (column F). If the Departure time is after midnight, then it will never be later than 4:00am. The Arrival time will never be earlier than 8:00am.
I want the sheet to show the time difference.
I thought this formula might do it, but it errors out when the time is greater than midnight.
Can anyone please suggest a tweak I can do to make this work?
I want the sheet to show the time difference.
I thought this formula might do it, but it errors out when the time is greater than midnight.
Excel Formula:
=IF(AND(HOUR(F3)>=0,HOUR(F3)<5),F3+TIME(24,0,0),F3)-E3
Can anyone please suggest a tweak I can do to make this work?