Age in years only

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a formula that will just return age in years from a given birthdate. I
have tried using =DATEDIF(A1,TODAY(),"y") but if I do not insert a birthdate
then the formula returns 106
 
=if(a1="","",datedif(....))


I need a formula that will just return age in years from a given birthdate. I
have tried using =DATEDIF(A1,TODAY(),"y") but if I do not insert a birthdate
then the formula returns 106
 
A blank cell is treated as 1/1/1900 which is 106 years ago.

If you want a blank returned, you could do something like
=IF(ISBLANK(A1),"",DATEDIF(A1,TODAY(),"y"))

Dave
 
Hi Jamie,

This would also work

=IF(A1="","",YEAR(TODAY())-YEAR(A1))

HTH

Simon
 
Back
Top