Hi all - I NEED SOME HELP!!
I have 3 drop down lists - DATE (D2); MONTH (E2); YEAR (G2)
I have annual leave allowance based on time served - (Q2) 25.0 (<5 years service); (Q3) 30.0 (>5 years service but started after 30/4/2013); (Q4) 31.5 (>5 years service and started on or prior to 30/4/2013)
My problem is when 2019 is selected in (G2) it results in 30.0 (Q3) - this is the only year with a problem!!
Here's the formula used...
=IF(G2="YEAR","",IF(AND(YEAR(TODAY())-G2<5,YEAR(TODAY())>G2),Q2,IF(DATE(G2,E2,D2)<=DATE(2013,4,30),Q4,IF(DATE(G2,E2,D2)>DATE(2013,4,30),Q3))))
I have 3 drop down lists - DATE (D2); MONTH (E2); YEAR (G2)
I have annual leave allowance based on time served - (Q2) 25.0 (<5 years service); (Q3) 30.0 (>5 years service but started after 30/4/2013); (Q4) 31.5 (>5 years service and started on or prior to 30/4/2013)
My problem is when 2019 is selected in (G2) it results in 30.0 (Q3) - this is the only year with a problem!!
Here's the formula used...
=IF(G2="YEAR","",IF(AND(YEAR(TODAY())-G2<5,YEAR(TODAY())>G2),Q2,IF(DATE(G2,E2,D2)<=DATE(2013,4,30),Q4,IF(DATE(G2,E2,D2)>DATE(2013,4,30),Q3))))