Time Function help with formula needed

neilmark

New Member
Joined
Jan 9, 2019
Messages
13
I need help with a formula
in Row 53 column F I have time at 0:30
In Row 57 column B I have time at 23:10
in Row 57 column E I have result which is comp3

the formula I am using works for all times from 01:00 to 23:00 but post midnight it doesn't work this is what I am using in cell 57 (F) =IFERROR(IF(AND(F$53>=$B57,F$53<$C57),$E57," ")," ") 0:30 should show as greater than 23:10 because its the next day any help would be appreciated


cant seem to get this to work for post midnight times when it should be adding a day tomake the time greater than previous day time
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Or

=IF(B57< E53,B57-E53,1-(B57-E53))<e53,b57-e53,1-(b57-e53))< html=""></e53,b57-e53,1-(b57-e53))<>
 
Last edited:
Upvote 0
Try this;

=IF(B57="","",IF(F53="","",IF(MOD(F53-B57,1)*24=0,"",MOD(F53-B57,1)*24)))


this does not seem to work ,

So the formula is in cell F57 , if the statement is true then it should bring up the result from cell E57.
The time field in Row 53 . I am trying to compute if 0:30 is greater than 23:10(B57) then the result should be Comp3 (E57)
0:30 should ideally be greater than 23:10 because it is the next day

Task List 1
(Flight 1)
StartEndDurationResult0:30 0:45 1:00 1:15 1:30 1:45 2:00
Pre Arrival6:107:101:00Comp1
Arrival7:108:401:30Comp1
Pre Departure22:1023:101:00Comp2
Check-in23:101:102:00Comp3
Boarding1:102:101:00Comp4
Post Departure2:103:101:00Comp4

<colgroup><col><col><col><col><col><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0
this does not seem to work ,

So the formula is in cell F57 , if the statement is true then it should bring up the result from cell E57.
The time field in Row 53 . I am trying to compute if 0:30 is greater than 23:10(B57) then the result should be Comp3 (E57)
0:30 should ideally be greater than 23:10 because it is the next day

Task List 1
(Flight 1)
StartEndDurationResult0:30 0:45 1:00 1:15 1:30 1:45 2:00
Pre Arrival6:107:101:00Comp1
Arrival7:108:401:30Comp1
Pre Departure22:1023:101:00Comp2
Check-in23:101:102:00Comp3
Boarding1:102:101:00Comp4
Post Departure2:103:101:00Comp4

<tbody>
</tbody>

if we use the formula IF(MOD(F53-B57,1) then if B57(0:30 ) changes to 01:10 it will assume 0:30 is still greater as it adds another day
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

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