Sumarize working hours per Employee per Day based on check in, check out time

kuldokk

New Member
Joined
Oct 16, 2014
Messages
26
working_hour.png


Hi guys,

I have a small problem here like I wrote in the title. How can I find out how many hours an employee has already worked in a particular day (Column H).
Given the fact is an employee may check in and check out multiple times per day.

With my current solution I need so many steps that I would rather not go with it: Split check in and check out time to 2 columns, line up check in and check out to 1 row, perform time difference calculation and then run SUMIFS formula to fill in the column H. This solution cannot account for the case that the last check in and check out fall on 2 consequent days.

Thank you for any suggestion.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
this solution uses helper column E


Excel 2012
ABCDEFGH
1DateTimeIDCheck In/OutDateIDHrs
223/03/201613:15:25ACheck In14:15:2523/03/2016A2
323/03/201614:15:25ACheck Out14:15:2523/03/2016B1
423/03/201615:15:25ACheck In16:15:25
523/03/201616:15:25ACheck Out16:15:25
622/03/201617:15:25ACheck In18:15:25
722/03/201618:15:25ACheck Out18:15:25
823/03/201619:15:25BCheck In20:15:25
923/03/201620:15:25BCheck Out20:15:25
1023/03/2016
1123/03/2016
1223/03/2016
1323/03/2016
1423/03/2016
Sheet3
Cell Formulas
RangeFormula
E2=IF(D3="Check Out",B3,B2)
H2=24*SUMPRODUCT(($A$2:$A$14=F2)*($C$2:$C$14=G2),$E$2:$E$14-$B$2:$B$14)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

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