Prorating Salary based on hire date and Term date

KimberlyWelty

New Member
Joined
May 10, 2016
Messages
21
Trying to edit the monthly salary based on hire date and/or termination date of employees. The formula I have is working, unless the person is not terminated. I know it must be something simple, but having trouble making it work. If anyone is able to assist or simplify my formula, that would be great.

Here is the formula I am using:
=IF(OR($B2>EOMONTH(E$1,0),$C2<E$1),"",$D2*(MIN(EOMONTH(E$1,0),$C2)-MAX(E$1,$B2)+1)/IF(MOD(YEAR($E$1),4)=0,366,365))

1696860409475.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
try this:
Excel Formula:
IF(OR($B2>EOMONTH(E$1,0),IF($C2="",EOMONTH($P$1,0),$C2)<E$1),"",$D2*(MIN(EOMONTH(E$1,0),IF($C2="",EOMONTH($P$1,0),$C2))-MAX(E$1,$B2)+1)/IF(MOD(YEAR($E$1),4)=0,366,365))
 
Upvote 0
happy to help.
if this worked for you, please consider marking it as a solution for others to find
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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