Calculate Clock in and Clock out Times

solace94

New Member
Joined
Sep 17, 2014
Messages
2
I have an issue I am trying to solve and having a hard time finding a solution and hoping someone can point me in the right direction.

I have a list of seasonal employees who will be clocking in by using an excel template. They scan the bar code on the back of their badge and the excel will time stamp the scan. I want to try and get it to also catagorize the scans are clock in or clock out based on their last scan.

[TABLE="width: 500"]
<tbody>[TR]
[TD]#[/TD]
[TD]Name[/TD]
[TD]Timestamp[/TD]
[TD]In/Out[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Mike[/TD]
[TD]9/17/2014 8:00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Ryan[/TD]
[TD]9/17/2014 8:30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Mike[/TD]
[TD]9/17/2014 11:00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Mike[/TD]
[TD]9/17/2014 11:30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Ryan[/TD]
[TD]9/17/2014 11:30[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

In the example the first and 2nd entries would be both IN, 3rd entry would be OUT, 4th IN and 5th OUT.

Would like to find a way to create a formula to alternate In and Out based on the previous punch or even In 1, Out 1, In 2, Out 2. This would allow me to see if there were any missed punches and be able to calculate each persons work time. Not sure if this can be done but any assistance as to method or formula would be great.

Much Appreciated to all who help.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Code:
=IF(MOD(COUNTIF($B$2:B2,B2),2) = 0,"Out","In")


Put this in D2 and copy down. It won't account for missed clock ins, because I don't know how you want to do that.
 
Upvote 0

Forum statistics

Threads
1,222,227
Messages
6,164,723
Members
451,912
Latest member
HMF009

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