Time Sheet Calculation

FinPro

New Member
Joined
Jun 4, 2014
Messages
22
I will be grateful If someone can help me with this task:

I have the data from our "Attendance Machine". I need to calculate the "Total Time" considering that solution should be able to sort the data by employee and date. It should also be able to recognize if there are two time stamps are available. If only one is available, 0 hrs should be calculated. If there are more than 2 time stamps for the same date than first and last time stamps should be considered. There will be cases where "IN" stamp will be in before the midnight and "OUT" stamp will be in next calendar date. If all this can be done in a separate formatted sheet, will be excellent.

It appears to me that this quite a big task and I will be very thankful for the solutions. Sample data is as follows:

No.User IDDepartmentDateTimeEvent
16361000General3/3/20198:33:27IN
16141000General3/3/201917:04:01OUT
15571000General4/3/20198:26:51IN
14751000General5/3/20198:24:26IN
14531000General5/3/201916:56:15OUT
13001000General7/3/20198:29:59IN
12791000General7/3/201916:56:40OUT
11331000General10/3/20198:29:50IN
11111000General10/3/201916:57:38OUT
10401000General11/3/20198:36:10IN
9961000General11/3/201918:29:13OUT
9531000General12/3/20198:35:18IN
9321000General12/3/201917:00:36OUT
8611000General13/3/20198:53:35IN
8391000General13/3/201917:21:51OUT
7761000General14/3/20198:34:38IN
7511000General14/3/201916:47:39OUT
6311000General17/3/201913:36:28IN
6131000General17/3/201916:46:22OUT
5441000General18/3/20198:12:44IN
5181000General18/3/201916:56:47OUT
4491000General19/3/20198:23:25IN
4341000General19/3/201914:38:50OUT
3571000General20/3/20198:57:19IN
3411000General20/3/201916:29:25OUT
2731000General21/3/20198:05:13IN
891000General24/3/20198:31:56IN
721000General24/3/201916:53:30OUT
91000General25/3/20198:14:53IN
16641012General2/3/201922:14:43IN
16891012General2/3/201913:47:03IN
16631012General2/3/201922:14:52OUT
16271012General3/3/201913:54:03IN
15901012General3/3/201921:56:07OUT
15071012General4/3/201921:55:23IN
15451012General4/3/201913:55:54IN
14631012General5/3/201913:55:12IN
14221012General5/3/201922:02:22OUT
13691012General6/3/201915:01:54IN
13351012General6/3/201921:59:16OUT
12891012General7/3/201913:58:54IN
12491012General7/3/201922:03:21OUT
11991012General9/3/201913:26:24IN
11741012General9/3/201922:01:35OUT
11221012General10/3/201913:45:37IN
10771012General10/3/201922:00:02OUT
10321012General11/3/201913:09:33IN
9891012General11/3/201922:02:30OUT
9441012General12/3/201913:33:48IN
8971012General12/3/201922:06:29OUT
8571012General13/3/201913:07:09IN
8141012General13/3/201922:00:25OUT
7681012General14/3/201913:43:56IN
7201012General14/3/201922:12:05OUT
7031012General16/3/20196:10:47IN
6931012General16/3/201913:54:37OUT
6581012General17/3/20196:16:53IN
5291012General18/3/201914:03:03OUT
4751012General19/3/20195:57:42IN
4351012General19/3/201914:11:43OUT
3761012General20/3/20197:12:38IN
3501012General20/3/201913:57:58OUT
2821012General21/3/20197:52:40IN
2601012General21/3/201914:01:28OUT
1821012General23/3/20196:03:44IN
1621012General23/3/201914:02:15OUT
1041012General24/3/20197:53:13IN
771012General24/3/201914:10:04OUT
251012General25/3/20196:59:51IN
16471015General3/3/20197:15:21IN
16181015General3/3/201916:22:47OUT
15671015General4/3/20197:27:51IN
15371015General4/3/201916:28:08OUT
14741015General5/3/20198:24:50IN
14551015General5/3/201916:27:54OUT
13991015General6/3/20197:15:35IN
13111015General7/3/20197:21:03IN
12801015General7/3/201916:29:26OUT
11461015General10/3/20197:22:41IN
11131015General10/3/201916:22:00OUT
10521015General11/3/20197:21:15IN
10211015General11/3/201916:29:42OUT
8661015General13/3/20198:08:38IN
6201015General17/3/201916:30:59IN
6421015General17/3/20198:14:20IN
6191015General17/3/201916:31:05OUT
5551015General18/3/20197:12:30IN
5221015General18/3/201916:26:39OUT
4611015General19/3/20197:09:22IN
4271015General19/3/201916:26:32OUT
3551015General20/3/201911:37:47IN
3421015General20/3/201916:24:49OUT
2831015General21/3/20197:17:02IN
2541015General21/3/201916:26:51OUT
231015General25/3/20197:14:51IN
16681023General2/3/201921:57:56IN
16851023General2/3/201914:10:51IN
16661023General2/3/201921:58:07OUT
16191023General3/3/201916:09:02IN

<tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,596
Messages
6,120,438
Members
448,966
Latest member
DannyC96

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