Calculating current age from 2 date cells

D

dhealy

I have 2 cells, one with date of birth and one with current date. I am
trying to get the current age to calcualate using these two fields....any
suggestions?
 
J

JulieD

Hi

you can use the datedif function to do this:

with the birthdate in A1 and the date you're interested in in B1
=DATEDIF(A1,B1,"y") & " years, " & DATEDIF(A1,B1,"ym") & " months, " &
DATEDIF(A1,B1,"md") & " days"

if you want to use the current date you don't need to have it in another
cell you can use the NOW function, e.g.
=DATEDIF(A1,NOW(),"y") & " years, " & DATEDIF(A1,NOW(),"ym") & " months, " &
DATEDIF(A1,NOW(),"md") & " days"

for more details check out
http://www.cpearson.com/excel/datedif.htm#Age

Cheers
JulieD
 

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