+ Reply to Thread
Results 1 to 3 of 3

Calculating Age from Date of birth

  1. #1
    Registered User
    Join Date
    09-15-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Calculating Age from Date of birth

    Hi everyone

    I asked the question yesterday about how to calculate the age from the date of birth and was given these two responses

    1) I may be way off here but all that coding seems a waste !

    I have in cell A1 = BLANK <--- enter your DOB here

    I have in cell A2 =NOW()

    in cell A3 do = A2-A1

    Format that to General

    In Cell A4 do =A3/365

    Format that to no deciamal places and you get the age - this one is adding a year to everyones age?

    2) Alternatively, if the DOB is A1 :-

    =INT(YEARFRAC(A1,TODAY(),1)) - This one does not work it is saying there is an error with the "yearfrac"?

    It is also when I am trying to put these into a pivot table, the pivot table is listing these down to 5 decimal places( when I have formatted to zero)????

    Thanks in advance
    Last edited by Dancingqueen; 09-16-2009 at 11:00 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculating Age from Date of birth

    see the DATEDIF function - http://www.cpearson.com/excel/datedif.aspx

    (there is an Age example at the bottom of the page referenced)

  3. #3
    Registered User
    Join Date
    09-15-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Smile Re: Calculating Age from Date of birth

    Ok thanks for this I will try working through it!

    Excel Novice

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1