C
ck
I have used the following statement, but it is returning an incorrect result
for some cells. In an cell containing an age of 10 years, 11months..the
formula is returning "6m-2y" when it should say older than 2. It also does
this for the age 25 years 6 months and 18 years 10 months. Please help.
=IF(AND(E203>="0years,0months",E203<="0years,3months"),"0-3",IF(AND(E203>"0years,3months",E203<="0years,6months"),"3-6",IF(AND(E203>"0years,6months",E203<="2years,0months"),"6m
- 2y",IF(AND(E203>"2years,0months",E203<="99years,0months"),"Older than
2",""))))
for some cells. In an cell containing an age of 10 years, 11months..the
formula is returning "6m-2y" when it should say older than 2. It also does
this for the age 25 years 6 months and 18 years 10 months. Please help.
=IF(AND(E203>="0years,0months",E203<="0years,3months"),"0-3",IF(AND(E203>"0years,3months",E203<="0years,6months"),"3-6",IF(AND(E203>"0years,6months",E203<="2years,0months"),"6m
- 2y",IF(AND(E203>"2years,0months",E203<="99years,0months"),"Older than
2",""))))