Time Between 2 times?

MarkJamesDavies

New Member
Joined
Jan 30, 2015
Messages
12
Hi,

I need a way to work out if a time is between 2 times including the original time. Please see below for example;


<tbody>
</tbody>

Sign out timesign in time1:001:151:301:452:002:152:302:45
1:002:15

<tbody>
</tbody>

so IF there is a sign out time at 1:00, C3 should populate with YES or FALSE if it doesn't.

I've tired to use OR, MIN, MAX, IF, AND....But I just can't get it right.

PLEASE can someone help, I've spent over 9 hours staring at my laptop today. I'd be happy to make a donation to the site if it can be solved. It's driving me nuts.

I just need to break down the duration into 15 minutes.

Thank you in advance!

M
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Is this what you are looking for:


Unknown
ABCDEFGHIJ
2Sign out timesign in time01:0001:1501:3001:4502:0002:1502:3002:45
301:0002:15YesYesYesYesYesYesFALSEFALSE
401:3002:30FALSEFALSEYesYesYesYesYesFALSE
Sheet2
Cell Formulas
RangeFormula
C3=IF((C$2>=$A3)*(C$2<=$B3),"Yes",FALSE)
 
Last edited:
Upvote 0
Is this what you are looking for:

Unknown
ABCDEFGHIJ
2Sign out timesign in time01:0001:1501:3001:4502:0002:1502:3002:45
301:0002:15YesYesYesYesYesYesFALSEFALSE
401:3002:30FALSEFALSEYesYesYesYesYesFALSE

<tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
C3=IF((C$2>=$A3)*(C$2<=$B3),"Yes",FALSE)

<tbody>
</tbody>

<tbody>
</tbody>

This works great apart from the 12am hour - if I put the sign out time as 00:01 and have the time 00:00 in C1, it doesn't work for me. Am I doing something wrong here?



ABCDEFGHIJ
2Sign out timesign in time00:0000:1500:3000:4501:0001:1501:3001:45
300:0102:15FALSEYesYesYesYesYesYesYes
401:3002:30FALSEFALSEFALSEFALSEFALSEFALSEYesYes

<tbody>
</tbody>

Thank you in advance!

M
 
Last edited:
Upvote 0

Unknown
ABCDEFGHIJ
2Sign out timesign in time00:0000:1500:3000:4501:0001:1501:3001:45
300:0102:15YESYESYESYESYESYESYESYES
401:3002:30FALSEFALSEFALSEFALSEFALSEFALSEYESYES
500:3001:15FALSEFALSEYESYESYESYESFALSEFALSE
601:0002:15FALSEFALSEFALSEFALSEYESYESYESYES
Sheet2
Cell Formulas
RangeFormula
C3=IF((LOOKUP($A3,$C$2:$J$2)<=C$2)*(C$2<=$B3),"YES","FALSE")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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