Help with Payroll Formula

aja2150

New Member
Joined
Apr 3, 2011
Messages
9
I am working on a payroll assignment for school and after a couple of hours of working on it, I am still having troubles getting my gross wage formula to work correctly. This is what I have so far.

The problem states that a minimum of 40 hours is payed to each employee regardless of how many hours they worked. 40-48 hours is paid 2 times the regular hourly wage. Over 48 is paid the OT rate plus $50 for every hour over 48. (I have not tried figuring out this last step in the problem yet because I can't get the 2nd step to work.) Here is what I have for my formula thus far.

=IF(I2<=40,40*H2,IF(AND(I2>40,I2<=48),I2*H2,(I2-48*'Payroll Assumptions'!B4+40*I2)))

I2= Hours worked
H2= Hourly Wage
Payroll Assumptions B4= Overtime rate

The formula correctly calculates the wages for employees under 40 hours, however when there is OT to be calculated, it is wrong. Maybe it is something very simple that I am overlooking because I have been staring at this problem for to long. Any help or advice would be greatly appreciated!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try
Code:
=IF(I2>48,(I2-48)*50+(I2-40)*H2*2+40*H2,IF(I2>40,(I2-40)*H2*2+40*H2,40*H2))
 
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

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