Staff checker based on time stamp

mmopulencia

New Member
Joined
Feb 19, 2013
Messages
30
Hello Again!

Sorry if it is a bit confusing .


Example on sheet 1 i have .
NamedateStartEnd
Mike09/19/201712:16 am3:35 am
John09/19/20171:39 am2:00 am

<tbody>
</tbody>




what i want it to look like is the table on sheet 2, i have a table on sheet 2 that looks like below but the is formulated to put a 1 if thhe time stamps hits the interval. which is below, i need a formula to determine whether what time the guys were in or what intervals their time slot hit.

so for example Mike his start time was 12:16 am it will fall under 12:15 am below hence the 1 mark , meaning from 12:15 to 12:30 he was there so on till 3:35 which where you'll see 3:30 having a mark of 1 as that time log falls under that category too. in summary depending on the time slot the table below will mark it as 1 if the slots given will hit those intervals.


also a future problem im also thiking about is for the dates crossing over , im looking at index matching it with time but im still 0 on it haha.

namedate12:00 am12:15 am12:30 am12:45 am1:00 am1:15 am1:30 am1:45 am2:00 am2:15 am2:30 am2:45 am3:00 am3:15 am3:30 am3:45 am4:00 am
Mike09/19/201711111111111111
John09/19/201711

<tbody>
</tbody>



i tried a couple of formulas using a simpler table below but couldnt get it to work

if you look at the entry below , it counts alright moving forward but it doesnt count interval 12:15 and doesnt allocate a '1' even though 12:29 falls under it .

with comments
formula i used is = IF(ISBLANK($D4),"",(IF(AND(I$2(12:15 am reference)<$E4(end time reference),I$2(12:15 am reference)>=$D4(Start time reference)),1,"")))

without

=IF(ISBLANK($D4),"",(IF(AND(I$2<$E4,I$2>=$D4),1,"")))


im thinking its because of this.

I$2>=$D4<--


HOOP7:00 AM
10:00 PM12:00 AM12:15 AM12:30 AM12:45 AM1:00 AM1:15 AM1:30 AM1:45 AM2:00 AM2:15 AM2:30 AM2:45 AM3:00 AM3:15 AM
WINIDADVISOR NAMESUPERVISOR NAMESTART TIMEEND TIMEDURATIONDate
30228009MAGAT, MARY JOYFenerose Miras12:29 AM3:16 AM2.788-Jan111111111111

<tbody>
</tbody>



and the list goes on till 11:45 pm.

Thank you for your help in advance <3
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi,

You are right, the culprit is I$2>='start', in your sample data, 12:15 is still before your start time.

You'll either need to compare to the next interval, so
=IF(ISBLANK($D4),"",(IF(AND(I$2<$E4,J$2>=$D4),1,""))) or add that 15 minutes, like =IF(ISBLANK($D4),"",(IF(AND(I$2<$E4,I$2+1/24/4>=$D4),1,""))) (1/24/4 is 15 minutes in Excel)
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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