payroll calculations

TammyNC

New Member
Joined
Feb 22, 2011
Messages
4
I need help!! I have a payroll sheet that has salary and hourly employees on it. I need to calculate their gross weekly pay and I need to do it in one formulal. So I have M2 is salary or hourly, N2 is payrate, and O2 is hours worked. P2 is my destination cell. I have to calculate overtime at 1.5 for those over 40 hours but there are some that are salary employees that do not get overtime but I still have to calculate their weekly gross pay. I have tried every formula I can think of to get this into one formula its the salary and hourly thats killing me. Can anyone help?? I can provide samples if needed.

Thanks in advance
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I assume that you know the calculations for both salaried and hourly employees so if you want to get this all into one formula:

=IF(M2="salary",[calculation for salaried employee], IF(M2="hourly",[calculation for hourly employee]))

HTH

TJ
 
Upvote 0
This works on my sheet

=IF(M7="Salary",O7*N7,IF(O7<=40,O7*N7,(O7*1.5)*N7))

Where I have put 40 this assumes the hours for a normal week before O/Time
 
Upvote 0
Wait,

Its wrong isnt it. I have calculated the overtime rate for all hours not just
those over 40 let me think on......
 
Upvote 0
Sorry,

I think this is it

Remember I am basing this on a 40 hr week

=IF(M7="Salary",O7*N7,IF(O7<=40,O7*N7,(N7*40)+(O7-40)*(N7*1.5)))
 
Upvote 0
Assuming 40 hours per week:

=IF(M2="salary",N2*O2, IF(M2="hourly",IF(O2>40,((O2-40)*(N2*1.5))+(N2*40),N2*O2)))

HTH

TJ
 
Upvote 0
thank you guys that was exactly what I was looking for the only thing I had to change was in the salary calculation it was "salary",N2/52 to get the weekly total for salary. it works great yall rock!
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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