Hello. Need a hand here ...
Three formulas work independent of each other; but when I combine them, they don't yield the results, I'm thinking it's because I'm adding "AND" in the middle equation:
=IF(AF30<(DATE(YEAR(AQ1)+5,MONTH(AQ1),DAY(AQ1))),(AF30-(DATEVALUE("1/1/2017")))*V31)
=IF(AND(AF30>=((DATE(YEAR(AQ1)+5,MONTH(AQ1),DAY(AQ1)))),(AF30<=((DATE(YEAR(AQ1)+10,MONTH(AQ1),DAY(AQ1)))))),(AF30-(DATEVALUE("1/1/2017")))*V32)
=IF(AF30>((DATE(YEAR(AQ1)+10,MONTH(AQ1),DAY(AQ1)))),(AF30-(DATEVALUE("1/1/2017")))*V33)
I combine the Three by removing the end parenthesis then add a comma:
=ROUND(IF(AF30<(DATE(YEAR(AQ1)+5,MONTH(AQ1),DAY(AQ1))),(AF30-(DATEVALUE("1/1/2017")))*V31,(IF(AND(AF30>=((DATE(YEAR(AQ1)+5,MONTH(AQ1),DAY(AQ1)))),(AF30<=((DATE(YEAR(AQ1)+10,MONTH(AQ1),DAY(AQ1)))))),(AF30-(DATEVALUE("1/1/2017")))*V32),IF(AF30>((DATE(YEAR(AQ1)+10,MONTH(AQ1),DAY(AQ1)))),(AF30-(DATEVALUE("1/1/2017")))*V33))),0)
Yield is #VALUE now.
Trying to calculate daily accrual rate of vacation based upon a hire date(cell AQ1) vs current date (cell AF30), if over 5 years then daily accrual is 0.2, if over 10 years .3 if over 15 years .4 (which I have in cells V31, V32, V33)
I'm stuck .....
Bookmarks