Calculating Overtime Daily after 40 hours worked in a week

SundanceStriping

New Member
Joined
Jul 23, 2014
Messages
8
I am at a loss. I have tried for four days now to figure out a formula to calculate regular hours, overtime hours and total hours per day and per week.

My current time card is as follows:

B13-B20 = Sun (noon until) -Sun (until noon)
C-L = in & out times for all days of the week above
M13-N20 = regular hours
N13-N20 = overtime hours
O13-O20 = Total Hours

Also:

M21 = total weekly regular hours
N21 = total weekly overtime hours
o21 = total weekly hours

I have already formatted the in & out times, regular, overtime and hour times to show/calculate correctly according to time/decimal conversion.


My main issue is that I want the daily time to show in regular hour until 40 hours for the week has been met. Once met, I would like the hours for the day to be shown in the overtime column.

Please help! Thanks
 
Re: Overtime Calculation

Based on your first post, see if this works (it should at least give you a start). I added a cum column to your sheet.
Note that in Excel time is a fraction of a 24 hour day. That's where the 40/24 comes from in the formulas.
I also formatted the calculations as [h]:mm
Excel Workbook
ABCDEFGHIJKLMNO
1DayInOutInOutInOutInOutInOutRegular Hrs.Overtime HoursTotalCum Column
2Sunday Noon Until8:00 AM11:00 AM3:00 3:003:00
3Monday8:00 AM11:00 AM12:00 PM6:00 PM9:0012:009:00
4Tuesday8:00 AM11:00 AM3:0015:003:00
5Wednesday8:00 AM11:00 AM3:0018:003:00
6Thursday8:00 AM11:00 AM3:0021:003:00
7Friday8:00 AM11:00 AM3:0024:003:00
8Saturday8:00 AM11:00 AM12:00 PM6:00 PM8:00 AM11:00 AM12:0036:0012:00
9Sunday Til Noon8:00 AM11:00 AM12:00 PM6:00 PM4:005:0045:009:00
10Total Hrs.40:005:00
Sheet
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Re: Overtime Calculation

Thanks. This worked great except for one thing. It may just be that it's not possible to do it.

Once 40 hours were hit, the appropriate time began to show up in the overtime column yet the regular hours column still had those hours noted as well.

I would like for it to look something like this.

Reg. OV Total Cum.
12 0 12 12
9 0 21 9
9 0 30 9
9 0 39 9
1 11 51 12 (note:from here forward with current formulas the Reg. shows 12, OV 11, Total 51, Cum, 12)
0 12 63 12

Is it possible to be done this way?
 
Upvote 0
Re: Overtime Calculation

I merged your two threads together (and deleted the references to duplicate threads).

In the future, please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule #9 here: Forum Rules).
 
Upvote 0
Re: Overtime Calculation

Thanks. This worked great except for one thing. It may just be that it's not possible to do it.

Once 40 hours were hit, the appropriate time began to show up in the overtime column yet the regular hours column still had those hours noted as well.

Who's suggestion did you try? As far as I can see, my suggestion does exactly what you asked for.
 
Upvote 0
Re: Overtime Calculation

I tried yours but nothing was showing up in overtime. I am attempting now to start back over from scratch now.

AhoyNC : worked great as well except that once overtime kicked in, the total hours for that day was still showing up in regular but would have the correct hours in regular.
 
Upvote 0
Re: Overtime Calculation

Check how you entered the formulas. Seems to work for me.
Note cells L8 & L9 are blank in my example.
Excel Workbook
ABCDEFGHIJKLMNO
1DayInOutInOutInOutInOutInOutRegular Hrs.Overtime HoursTotalCum Column
2Sunday Noon Until8:00 AM11:00 AM3:00 3:003:00
3Monday8:00 AM11:00 AM12:00 PM6:00 PM9:00 12:009:00
4Tuesday8:00 AM11:00 AM3:00 15:003:00
5Wednesday8:00 AM11:00 AM3:00 18:003:00
6Thursday8:00 AM11:00 AM1:00 PM10:00 PM12:00 30:0012:00
7Friday8:00 AM11:00 AM1:00 PM11:00 PM10:003:0043:0013:00
8Saturday8:00 AM11:00 AM12:00 PM6:00 PM8:00 AM11:00 AM 12:0055:0012:00
9Sunday Til Noon8:00 AM11:00 AM12:00 PM6:00 PM 9:0064:009:00
Sheet
 
Upvote 0

Forum statistics

Threads
1,216,574
Messages
6,131,492
Members
449,653
Latest member
aurelius33

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