Forum Discussion
Time sheet for hours worked
I am needing to make a sheet that shows clocking in for work - clocking out for lunch - clocking in from lunch - clocking out for the day and then the total of those hours worked per day and then grand total for the week. For our pay system we do things in 6 minute increments. I found a sample sheet through Excel, but the formula we have still isnt just right. Here is what I have and the formula for the hours worked is what I am needing help on. Any help is very much appreciated!
12 Replies
- LorenzoSilver Contributor
On Feb 18th someone replied on the following post:
The Show More link obviously bugs and no way to see that reply. If it was you responding to our question re. Rounding please re-post with a reply on this post
- raqim88Copper Contributor
You can just calculate morning time plus afternoon time, then round it. For example, total hours = (lunch out − clock in) + (clock out − lunch in). Then round that result to 6-minute increments using MROUND. After that, sum your daily totals for the week. Make sure the cells are formatted as time so it calculates correctly. This setup usually works for simple timesheets.
- mathetesGold Contributor
It may be clear to you what "we do things in 6 minute increments" means in this context. I know what the phrase means--and am assuming it is convenient because it refers to tenths of an hour--but you don't make clear how you're using it (or hoping to use it) in tracking time. Here are the possibilities that occur to me. Does it mean you:
- round each entry to the nearest tenth of an hour
- round each segment of clocked in to clocked out to the nearest tenth of an hour
- only round the final total "Hours Worked" to the nearest tenth of an hour
- something else?
- raqim88Copper Contributor
You can just calculate morning time plus afternoon time, then round it. For example, total hours = (lunch out − clock in) + (clock out − lunch in). Then round that result to 6-minute increments using MROUND. After that, sum your daily totals for the week. Make sure the cells are formatted as time so it calculates correctly. This setup usually works for simple timesheets.
- Llamaface06Copper Contributor
Sorry - wasn't sure how to word everything. So we round the total hours worked for each day to the nearest tenth of an hour. Here is an example -
Clocked in 8:00AM
Lunch out 12:00PM
Lunch in 1:21PM
Clocked out 5:00PM
Totals to 7.6
I am hoping there is a formula for excel that will give me that exact answer. Thank you :)
- NikolinoDEPlatinum Contributor
Here's a small attempt, maybe this will help you.
That calculates total hours worked with 6-minute increments (rounded to the nearest tenth of an hour).
=FLOOR(( (Clock_Out - Clock_In) - (Lunch_Out - Lunch_In) ) * 24, 0.1)
Example Breakdown:
- Clock_In: 8:00 AM (0.3333 in Excel)
- Lunch_Out: 12:00 PM (0.5)
- Lunch_In: 1:21 PM (0.55625)
- Clock_Out: 5:00 PM (0.70833)
Calculation:
=FLOOR(( (0.70833 - 0.3333) - (0.55625 - 0.5) ) * 24, 0.1)
=FLOOR(7.65, 0.1)
= 7.6
Ensure cells are formatted as [h]:mm to display time correctly.