In one column AH2 I have:
Which gives me age in years from the date of birth
Then in next column I have:
And for every age it says the range it's in is 80+, even though the ages are in various different ranges
Is it something to do with performing a check in a field with a function in it that is causing the wrong age range or am I missing something obvious in my logic?
G
Code:
=LEFT(YEARFRAC(AG2,TODAY(),1),2)
Which gives me age in years from the date of birth
Then in next column I have:
Code:
=IF(AH2>80,"80+",IF(AND(AH2<81,AH2>64),"65-80","Under 65"))
And for every age it says the range it's in is 80+, even though the ages are in various different ranges
Is it something to do with performing a check in a field with a function in it that is causing the wrong age range or am I missing something obvious in my logic?
G