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.

#NameTimestampIn/Out
1Mike9/17/2014 8:00
2Ryan9/17/2014 8:30
1Mike9/17/2014 11:00
1Mike9/17/2014 11:30
2Ryan9/17/2014 11:30

<tbody>
</tbody>

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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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