Calculating Overtime

jefraz

New Member
Joined
Jan 22, 2012
Messages
12
I am trying to create a spreadsheet that calculates overtime.


Day1Day2Day 3Day 4Day 5Day 6Day 7
Employee Hours89810950
Total Hours8172535444949
Overtime0000499

<tbody>
</tbody>


I was wondering if there was a formula or combination of formulas that would calculate this for me. On day 5 the employee went into overtime (over 40 hours) and should be paid 1.5 times there rate of pay. For example the employee normally makes $12 an hour. On days 1-4 they would receive $12 times their hours worked. On day 5 they go into overtime (over 40 hours) so they would get 5 hours at regular pay and 4 hours at $12 times 1.5, or an overtime rate of $18. I wanted to fill in cells with the regular hourly rate and overtime and have the spreadsheet calculate how much they would make based on the hours they worked.

Thank You!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Make Row 4, your overtime row this "=IF(G3>40,(40-G3)*-1,0)" Make whatever your pay row this in the first column "=IF(B3>40,B4*18+(B2-B4)*12,B2*12)", in every subsequent column, "=IF(C3>40,IF(C4>C2,C2*18,C4*18+(C2-C4)*12),C2*12)" This is assuming that the blank space in the top left of your spreadsheet is A1.
 
Upvote 0
Make Row 4, your overtime row this "=IF(G3>40,(40-G3)*-1,0)" Make whatever your pay row this in the first column "=IF(B3>40,B4*18+(B2-B4)*12,B2*12)", in every subsequent column, "=IF(C3>40,IF(C4>C2,C2*18,C4*18+(C2-C4)*12),C2*12)" This is assuming that the blank space in the top left of your spreadsheet is A1.

Thank You Michael. I am almost there! Here is my next question.

day1day2day3day4day 5day 6day 7pay rate
emp hrs89810950$12.00
total hrs8172535444949
ot hours0000499
emp $$96$108$96$120$132$114$54

<tbody>
</tbody>

After putting in the formulas this is what was calculated. On day 5 it looks good, 5 reg hours * 12 and 4 OT hours *18, which equals $132. The problem is that the 5 hours on day 6 should all be OT hours. It should be 5*$18 = $90 and then on day 7 there were no hours worked so that should be $0. Again, thank you for your help!!
 
Upvote 0
Ignore the last one, try

=((MIN(40,B3)*12)+(MAX(0,B3-40)*18)-SUM($A$6:A6))
 
Upvote 0
Another option :

1] TOTAL hrs B3, copy across :

=SUM(A3,B2)

2] OT hrs B4, copy across :

=MAX(0,B3-40)

3] EMP $ B5, copy across :

=MAX(B2-B4,0)*12+(B4-SUM(A4:A4))*18
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,496
Messages
6,130,983
Members
449,611
Latest member
Bushra

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