![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 38
|
Does anyone know how I can calculate ages from birthdates in the form 12/13/1979?
Thanks. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Georgia USA
Posts: 544
|
if your date in in B4 you could use
=DATEDIF(B4,NOW(),"y") & " years, " & DATEDIF(B4,NOW(),"ym") & " months, " & DATEDIF(B4,NOW(),"md") & " days" |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
you can use Datedif Datedif is in nearly all versions of Excel but it was only documented in Excel2000. With Date of Birth as a valid date and cell named DOB see below or just use cell reference instead of DOB. If you want all the information in one cell with text, consider =DATEDIF(DOB,TODAY(),"Y")&" years, "&DATEDIF(DOB,TODAY(),"ym")& " months, and "&DATEDIF(DOB,TODAY(),"md") &" days" You can extract the sub parts and have each part in a separate cell. Note: There are some anomalies with the day calculations. [ This Message was edited by: Dave Patton on 2002-04-19 11:34 ] |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=YEARFRAC(B4,TODAY(),1) Requires Analysis Toolpak (an Add-In accessible via Tools|Add-Ins). |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|