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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

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