Overtime work sheet

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Dear Robert,

The below is the format of the excel, the issue which i am facing now is, if a guy comes late or have Lunch time exceeding limit or doesn't take the lunch, how can i have this variable calculated in the hours worked so that the total working hours be calculated.




<colgroup><col style="mso-width-source:userset;mso-width-alt:4608;width:95pt" width="126"> <col style="mso-width-source:userset;mso-width-alt:2560; width:53pt" span="6" width="70"> <col style="mso-width-source:userset;mso-width-alt:3218;width:66pt" width="88"> </colgroup><tbody>
[TD="class: xl65, width: 126"]Week of 06/1/09[/TD]
[TD="class: xl66, width: 70"]Mon[/TD]
[TD="class: xl66, width: 70"]Tues[/TD]
[TD="class: xl66, width: 70"]Wed[/TD]
[TD="class: xl66, width: 70"]Thurs[/TD]
[TD="class: xl66, width: 70"]Fri[/TD]
[TD="class: xl66, width: 70"]Sat[/TD]
[TD="class: xl66, width: 88"]Sun[/TD]

[TD="class: xl67"]Log In[/TD]
[TD="class: xl68"]9:00 AM[/TD]
[TD="class: xl68"]9:15 AM[/TD]
[TD="class: xl68"]8:50 AM[/TD]
[TD="class: xl68"]9:20 AM[/TD]
[TD="class: xl68"]11:10 AM[/TD]
[TD="class: xl68"]12:15 PM[/TD]
[TD="class: xl69"] [/TD]

[TD="class: xl67"]Lunch Starts[/TD]
[TD="class: xl70"]12:00 PM[/TD]
[TD="class: xl70"]12:00 PM[/TD]
[TD="class: xl70"]12:10 PM[/TD]
[TD="class: xl70"]12:00 PM[/TD]
[TD="class: xl70"]12:15 PM[/TD]
[TD="class: xl71"] [/TD]
[TD="class: xl71"] [/TD]

[TD="class: xl67"]Lunch Ends[/TD]
[TD="class: xl70"]12:30 PM[/TD]
[TD="class: xl70"]12:15 PM[/TD]
[TD="class: xl70"]12:30 PM[/TD]
[TD="class: xl70"]12:30 PM[/TD]
[TD="class: xl70"]12:30 PM[/TD]
[TD="class: xl71"] [/TD]
[TD="class: xl71"] [/TD]

[TD="class: xl67"]Log Out[/TD]
[TD="class: xl70"]7:00 PM[/TD]
[TD="class: xl70"]6:00 PM[/TD]
[TD="class: xl70"]5:00 PM[/TD]
[TD="class: xl70"]5:30 PM[/TD]
[TD="class: xl70"]5:00 PM[/TD]
[TD="class: xl70"]4:00 PM[/TD]
[TD="class: xl71"] [/TD]

[TD="class: xl72"]Hours Worked[/TD]
[TD="class: xl73"]9.50[/TD]
[TD="class: xl73"]8.50[/TD]
[TD="class: xl73"]7.83[/TD]
[TD="class: xl73"]7.67[/TD]
[TD="class: xl73"]5.58[/TD]
[TD="class: xl73"]3.75[/TD]
[TD="class: xl73"]0.00[/TD]

[TD="class: xl64"][/TD]
[TD="class: xl74"][/TD]
[TD="class: xl75"]Reg. Hrs.[/TD]
[TD="class: xl76"]40.00[/TD]
[TD="class: xl75"]Over. Hrs.[/TD]
[TD="class: xl76"]2.83[/TD]
[TD="class: xl75"]Total Hrs.[/TD]
[TD="class: xl76"]42.83[/TD]

</tbody>
 
Upvote 0
Hi,

I'm sure Robert has a solution for you, but here's my attempt.....
I have added a small table to help with the calculations.

Excel Workbook
ABCDEFGHIJKLMNO
1Week of 06/1/09MonTuesWedThursFriSatSunStart TimeEnd timeLunchWork DayReg Hrs Total
2Log In9:00 AM9:15 AM8:50 AM9:20 AM11:10 AM12:15 PM9:00 AM5:00 PM00:30840
3Lunch Starts12:00 PM12:00 PM12:10 PM12:00 PM12:15 PM
4Lunch Ends12:30 PM12:15 PM12:30 PM12:30 PM12:30 PM
5Log Out7:00 PM6:00 PM5:00 PM5:30 PM5:00 PM4:00 PM
6Hours Worked9:308:307:507:405:353:450:00
7Reg. Hrs.8:008:007:507:405:353:450:00
8Over. Hrs1:300:30
9Reg. Hrs.40Over. Hrs.02:50Total Hrs.42:50
10
Sheet6


The formulas in B6, B7, B8 need to be copied across.

The results show in Hours and Minutes, I'm unsure how to get it as a decimal, sorry.

I hope this helps.

Ak
 
Last edited:
Upvote 0
Hello,

Assuming that the table starts from A1, the formulas I've worked out for daily hours worked are:

B8 (Mon) =(B3-B2)+(B5-B4)

then copy across to Sunday (H8).

Total hours (H13) =SUM(B8:H8) - 42:50.
Regular Hours will be constant at 40.
Overtime hours =H13-D13 - 2:50.

All cells are formatted [h]:mm - hours and minutes.
 
Upvote 0
Thanks Akashwani for the suggestion.

I have one query the formula which u mentioned

B6=(B5-B2)-(B4-B3)

If i dont take any lunch how is it possible that the half hour gets added automatically is it possible.
 
Upvote 0
Hi,

Oops, I deducted the 30 minutes!!

Use this to counter none working days....

=IF(B4<>"",(B5-B2)-(B4-B3),IF(B5<>"",(B5-B2)-(B4-B3)+$L$2,""))

Ak
 
Upvote 0
Dear AK,

I Would request you to please do the calculation according to the below table :-

[TABLE="width: 465"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]Week of 06/1/09[/TD]
[TD]Mon[/TD]
[TD]Tues[/TD]
[TD]Wed[/TD]
[TD]Thurs[/TD]
[TD]Fri[/TD]
[TD]Sat[/TD]
[TD]Sun[/TD]
[/TR]
[TR]
[TD]Log In[/TD]
[TD]9:00 AM[/TD]
[TD]9:15 AM[/TD]
[TD]8:50 AM[/TD]
[TD]9:20 AM[/TD]
[TD]11:10 AM[/TD]
[TD]12:15 PM[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Lunch Starts[/TD]
[TD]12:00 PM[/TD]
[TD]12:00 PM[/TD]
[TD]12:10 PM[/TD]
[TD]12:00 PM[/TD]
[TD]12:15 PM[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Lunch Ends[/TD]
[TD]12:30 PM[/TD]
[TD]12:15 PM[/TD]
[TD]12:30 PM[/TD]
[TD]12:30 PM[/TD]
[TD]12:30 PM[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Log Out[/TD]
[TD]7:00 PM[/TD]
[TD]6:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]5:30 PM[/TD]
[TD]5:00 PM[/TD]
[TD]4:00 PM[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Hours Worked[/TD]
[TD]9.50[/TD]
[TD]8.50[/TD]
[TD]7.83[/TD]
[TD]7.67[/TD]
[TD]5.58[/TD]
[TD]3.75[/TD]
[TD]0.00[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi,

I'm sorry but I don't have the skills to do that, that is why I gave the formulas and the layout that I did.

Ak
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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