Age in years only

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
 
D

Dave Peterson

=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
 
G

Guest

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
 
S

smw226 via OfficeKB.com

Hi Jamie,

This would also work

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

HTH

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top