Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jan Jan is offline
external usenet poster
 
Posts: 159
Default 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).
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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).


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change format of several dates entered in an Excel column ilyaz New Users to Excel 2 August 1st 06 05:34 AM
Format text 'dates' to real dates Jacy Excel Worksheet Functions 4 July 24th 06 02:10 AM
Converting numbers stored as dates to text in Excel David from Furdale Excel Discussion (Misc queries) 1 July 17th 06 06:34 PM
Ensure dates imported into Excel 2003 are shown in DD/MM/YYY form. KymY Excel Discussion (Misc queries) 3 February 11th 05 02:28 PM
how do I get excel to format dates before 1 jan 1900 keithcarteruk Excel Discussion (Misc queries) 1 February 3rd 05 05:23 PM


All times are GMT +1. The time now is 10:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"