Prorating Salary based on hire date and Term date - by month

KH Consulting

New Member
Joined
Mar 28, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I would like to calculate the prorated employees monthly pay by start and end date in a given month. but show all other month with the standard pay
Assume: $120,000 Annual Pay
Assume: $10,000 Monthly Pay
***Prorate if they leave or start during a month... can be a fraction of that month.... (denominator of # of days in a month OR just a standard of 30 days)

RIght now the formula I am using works, but it calculates based on 365/366 days thus each month the salary goes up and down instead of an even $10,000
Here is the formula I am using:
=IF(OR($BQ3>EOMONTH(BD$1,0),$BU3<BD$1),"",$R3*(MIN(EOMONTH(BD$1,0),$BU3)-MAX(BD$1,$BQ3)+1)/IF(MOD(YEAR(BD$1),4)=0,366,365))

*** bonus if I can have the end date blank and still return a salary... but that isn't necessary :)

1711645592827.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Another approach (bonus feature included):
Excel Formula:
=$R3/12*MAX(0,MIN(EOMONTH(BD$1,0),$BU3)-MAX(BD$1,IF($BQ3="",BD$1+33,$BQ3))+1)/DAY(EOMONTH(BD$1,0))
 
Upvote 1

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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