ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating current age from 2 date cells (https://www.excelbanter.com/excel-worksheet-functions/9469-calculating-current-age-2-date-cells.html)

dhealy

Calculating current age from 2 date cells
 
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?


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

"dhealy" wrote in message
...
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?





All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com