Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: calculate ages from birthdates

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Does anyone know how I can calculate ages from birthdates in the form 12/13/1979?

    Thanks.

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Georgia USA
    Posts
    569
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Calgary, Alberta Canada
    Posts
    3,431
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default


    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. #4
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,658
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-19 10:59, Paul B wrote:
    if your date in in B4 you could use
    =DATEDIF(B4,NOW(),"y") & " years, " & DATEDIF(B4,NOW(),"ym") & " months, " & DATEDIF(B4,NOW(),"md") & " days"
    Also:

    =YEARFRAC(B4,TODAY(),1)

    Requires Analysis Toolpak (an Add-In accessible via Tools|Add-Ins).

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •