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))
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))