ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   calculate age from 2 dates in yy,mm,dd format in excel (https://www.excelbanter.com/excel-worksheet-functions/113696-calculate-age-2-dates-yy-mm-dd-format-excel.html)

Jan

calculate age from 2 dates in yy,mm,dd format in excel
 
In excel 2003, how do I claculate age from date of birth and another date. I
would like to express this in yy,mm,dd format (I've already formated the cell
to appear this way).

Pete_UK

calculate age from 2 dates in yy,mm,dd format in excel
 
Try this, with dates in A1 and B1, B1 being the later date (could be
=TODAY() ):

=DATEDIF(A1,B1,"y") & "," & DATEDIF(A1,B1,"ym") & "," &
DATEDIF(A1,B1,"md")

As this returns a string, your cell format is not relevant, though I've
tried to match it.

Hope this helps.

Pete

jan wrote:
In excel 2003, how do I claculate age from date of birth and another date. I
would like to express this in yy,mm,dd format (I've already formated the cell
to appear this way).




All times are GMT +1. The time now is 04:55 AM.

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