+ Reply to Thread
Results 1 to 5 of 5

Working out age from "Day" "Month" "Year"

  1. #1
    Registered User
    Join Date
    02-05-2006
    Posts
    7

    Working out age from "Day" "Month" "Year"

    I would like to know how would I work out someone's age in number ("20") from having three seperate columns of:

    Day Month Year
    14 March 1986

    note, this is not in the form dd/mm/yyyy in one cell but in three seperate columns. I am thinking there may be two steps e.g. on step to get it into dd/mm/yyyy then another to put it into age?

    Thanks in advance, Tim
    Last edited by timmyc; 02-05-2006 at 10:01 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Perhaps,

    =DATEDIF(A1&"-"&B1&"-"&C1,NOW(),"y")

  3. #3

    Re: Working out age from "Day" "Month" "Year"

    Try this, it has worked for me.

    =YEAR(TODAY()-DATEVALUE(A1&B1&C1))-1900


  4. #4
    Don Guillett
    Guest

    Re: Working out age from "Day" "Month" "Year"

    one way with a lookup table
    January 1
    February 2
    March 3
    April 4
    May 5
    June 6
    July 7
    August 8
    September 9
    October 10
    November 11
    December 12


    =DATEDIF(DATE(I5,VLOOKUP(H5,K4:L15,2,0),G5),NOW(),"y")

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "timmyc" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I would like to know how would I work out someone's age in number ("20")
    > from having three seperate columns of:
    >
    > Day Month Year
    > 14 March 1986
    >
    > note, this is not in the form dd/mm/yyyy in *one* cell but in three
    > seperate columns. I am thinking there may be two steps e.g. on step to
    > get it into dd/mm/yyyy then another to pur it into age?
    >
    > Thanks in advance, Tim
    >
    >
    > --
    > timmyc
    > ------------------------------------------------------------------------
    > timmyc's Profile:
    > http://www.excelforum.com/member.php...o&userid=31198
    > View this thread: http://www.excelforum.com/showthread...hreadid=508699
    >




  5. #5
    Registered User
    Join Date
    02-05-2006
    Posts
    7
    Yeah thanks alot that really helped.

    Tim

+ 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