+ Reply to Thread
Results 1 to 7 of 7

Help need with formula

  1. #1
    Registered User
    Join Date
    11-08-2004
    Posts
    11

    Help need with formula

    I need to work out how many years and months someone been alive. Can anyone help?

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    This is one option:

    A1: birthdate
    B1: =DATEDIF(A1,TODAY(),"Y")&" years & "&MOD(DATEDIF(A1,TODAY(),"M"),12)&" months"

    Ola Sandström

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Also...

    =DATEDIF(A1,TODAY(),"Y")&" Years, "&DATEDIF(A1,TODAY(),"YM")&" Months"

    Hope this helps!

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Much better...

  5. #5
    Guest

    Re: Help need with formula

    Hi

    Have a look at DATEDIF. Here is some info on how it works:
    http://www.cpearson.com/excel/datedif.htm

    Andy.

    "smith.james0" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I need to work out how many years and months someone been alive. Can
    > anyone help?
    >
    >
    > --
    > smith.james0
    > ------------------------------------------------------------------------
    > smith.james0's Profile:
    > http://www.excelforum.com/member.php...o&userid=16230
    > View this thread: http://www.excelforum.com/showthread...hreadid=374933
    >




  6. #6
    Ragdyer
    Guest

    Re: Help need with formula

    Try the Datedif function.

    It's undocumented except in XL2k.

    BUT, you can find it explained at Chip Pearson's web site at:

    http://www.cpearson.com/excel/datedif.htm
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "smith.james0" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I need to work out how many years and months someone been alive. Can
    > anyone help?
    >
    >
    > --
    > smith.james0
    > ------------------------------------------------------------------------
    > smith.james0's Profile:

    http://www.excelforum.com/member.php...o&userid=16230
    > View this thread: http://www.excelforum.com/showthread...hreadid=374933
    >



  7. #7
    Registered User
    Join Date
    11-08-2004
    Posts
    11
    Thanks a lot that works great

+ 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