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
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi. What is the purpose of this section:

AND(F$53>=$B57,F$53<$C57)
 
Upvote 0
Hi. What is the purpose of this section:

AND(F$53>=$B57,F$53<$C57)

Hi Steve

in F$53 I have the time 0:30 and in B$57 I have another time 23:10 , and in C57 I have time 01:10

technically midnight 30(0:30 is greater than 23:10 ) so If this is true I want to show the result which is in E57

excel is not seeing that 0:30 Is the next day and 23:10 is the previous day
 
Upvote 0
Sure i get that bit. Im just not sure why you are testing F53>=B57? What is the purpose of this test?
 
Upvote 0
so basically if F$53 is greater than or Equal to B57 and if F$53 is less than B57 then the result is E57 if not the cell F57 should be blank
 
Upvote 0
reposting - so basically if F$53 is greater than or Equal to B57 and if F$53 is less than C57 then the result is E57 if not the cell F57 should be blank
 
Upvote 0
Task List
StartEndDurationResult0:30 0:45 1:00 1:15 1:30 1:45
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="5"></colgroup><tbody>
</tbody>
 
Upvote 0
Im sorry i just dont know what you are asking. What is this table? Under 0:30 is something supposed to show?
 
Upvote 0
Im sorry i just dont know what you are asking. What is this table? Under 0:30 is something supposed to show?

hi Steve

I don't have access to upload an attachment

so assume row 53 is the time fileds which starts at F53 from 00:30-23:45
the formula kicks in so if the criterea is not met the cell will be black if it is met then the cell gets highlighted through conditional formatting .
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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