+ Reply to Thread
Results 1 to 13 of 13

Dates/ Ages

  1. #1
    Jerry W. Lewis
    Guest

    Re: Dates/ Ages

    I am having trouble understanding what you mean by "the age from that
    date to the DOB", but here are some general comments that may help.

    Excel dates are stored as the number of days since 1900. You can
    subtract dates and apply the General format to get the number of days
    between the dates. Hence
    =(TODAY()-dob)/365.25
    and formatted as a number would give the person's approximate age in
    years as a decimal fraction.

    Jerry

    Brian wrote:

    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks



  2. #2
    Brian
    Guest

    Re: Dates/ Ages

    Thanks
    The part the I need know is to subtract 2 dates from each other to get the
    age. The dates are preset. Also how can I get the whole numbers for the age
    and not to get the rounded up number.
    "Brian" <brian@NOSPAMwallytech.net> wrote in message
    news:dSWHe.10379$6%2.6970@fe10.lga...
    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need

    to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks
    >
    >
    >




  3. #3
    Max
    Guest

    Re: Dates/ Ages

    "Brian" wrote :
    ....
    > The part the I need know is to subtract 2 dates from each other
    > to get the age. The dates are preset. Also how can I get the whole
    > numbers for the age and not to get the rounded up number.


    Perhaps something along these lines ..

    Assume you have in A1:B4 the data below,
    names in col A, dates of birth in col B:

    Pupil A 12-Jan-1998
    Pupil B 08-Jul-1990
    Pupil C 30-Jun-1978
    Pupil D 25-Nov-1991

    And in say, D1, you have a certain pre-set reference date,
    say an "anniversary date": 30-Jun-2005

    Put in C1: =TEXT(ROUNDUP($D$1-B1,-1),"y")+0
    Format C1 as: General or Number (zero dp)

    Copy C1 down to C4

    C1:C4 will return the age of the pupils A - D
    as of the "anniversary date"
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----



  4. #4
    Arvi Laanemets
    Guest

    Re: Dates/ Ages

    Hi

    =DATEDIF(BirthDate,TODAY(),"Y")
    returns age in full years.
    =DATEDIF(BirthDate,TODAY(),"YM")
    returns remaining (minus full years) age in months.
    =DATEDIF(BirthDate,TODAY(),"MD")
    returns remaining (minus full years and months) age in days.

    NB! The function isn't fully correct (especially with "MD" parameter) for
    some combinations of specific dates, but it's applicable generally.

    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "Brian" <brian@NOSPAMwallytech.net> wrote in message
    news:dSWHe.10379$6%2.6970@fe10.lga...
    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need
    > to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks
    >
    >
    >




  5. #5
    sandved@gmail.com
    Guest

    Re: Dates/ Ages

    Hi

    If you need to convert a given number of days into year (with
    fractions) it could be wise to use te gregorian median year which is
    365.2425 days/year

    See
    http://mathforum.org/library/drmath/view/53917.html
    and
    http://www.tondering.dk/claus/cal/node3.html -
    SECTION00320000000000000000

    Regards,
    Nikolai - http://www.pvv.org/~nsaa/excel.html


  6. #6
    Bob Phillips
    Guest

    Re: Dates/ Ages

    Also check http://www.cpearson.com/excel/datedif.htm#Age

    --
    HTH

    Bob Phillips

    "Brian" <brian@NOSPAMwallytech.net> wrote in message
    news:dSWHe.10379$6%2.6970@fe10.lga...
    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need

    to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks
    >
    >
    >




  7. #7
    Brian
    Guest

    Dates/ Ages

    Hello:
    I was wondering if anyone could help me with a function in excel. I need to
    be able to calc peoples ages into different cells.
    For example:
    Col B has the DOB
    Col C I need the current Age with the current Date

    Col D as a Date and I need it the calc the age from that date to the DOB

    I need this ASAP. Can anyone help.
    Thanks




  8. #8
    Jerry W. Lewis
    Guest

    Re: Dates/ Ages

    I am having trouble understanding what you mean by "the age from that
    date to the DOB", but here are some general comments that may help.

    Excel dates are stored as the number of days since 1900. You can
    subtract dates and apply the General format to get the number of days
    between the dates. Hence
    =(TODAY()-dob)/365.25
    and formatted as a number would give the person's approximate age in
    years as a decimal fraction.

    Jerry

    Brian wrote:

    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks



  9. #9
    Brian
    Guest

    Re: Dates/ Ages

    Thanks
    The part the I need know is to subtract 2 dates from each other to get the
    age. The dates are preset. Also how can I get the whole numbers for the age
    and not to get the rounded up number.
    "Brian" <brian@NOSPAMwallytech.net> wrote in message
    news:dSWHe.10379$6%2.6970@fe10.lga...
    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need

    to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks
    >
    >
    >




  10. #10
    Max
    Guest

    Re: Dates/ Ages

    "Brian" wrote :
    ....
    > The part the I need know is to subtract 2 dates from each other
    > to get the age. The dates are preset. Also how can I get the whole
    > numbers for the age and not to get the rounded up number.


    Perhaps something along these lines ..

    Assume you have in A1:B4 the data below,
    names in col A, dates of birth in col B:

    Pupil A 12-Jan-1998
    Pupil B 08-Jul-1990
    Pupil C 30-Jun-1978
    Pupil D 25-Nov-1991

    And in say, D1, you have a certain pre-set reference date,
    say an "anniversary date": 30-Jun-2005

    Put in C1: =TEXT(ROUNDUP($D$1-B1,-1),"y")+0
    Format C1 as: General or Number (zero dp)

    Copy C1 down to C4

    C1:C4 will return the age of the pupils A - D
    as of the "anniversary date"
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----



  11. #11
    Arvi Laanemets
    Guest

    Re: Dates/ Ages

    Hi

    =DATEDIF(BirthDate,TODAY(),"Y")
    returns age in full years.
    =DATEDIF(BirthDate,TODAY(),"YM")
    returns remaining (minus full years) age in months.
    =DATEDIF(BirthDate,TODAY(),"MD")
    returns remaining (minus full years and months) age in days.

    NB! The function isn't fully correct (especially with "MD" parameter) for
    some combinations of specific dates, but it's applicable generally.

    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    "Brian" <brian@NOSPAMwallytech.net> wrote in message
    news:dSWHe.10379$6%2.6970@fe10.lga...
    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need
    > to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks
    >
    >
    >




  12. #12
    sandved@gmail.com
    Guest

    Re: Dates/ Ages

    Hi

    If you need to convert a given number of days into year (with
    fractions) it could be wise to use te gregorian median year which is
    365.2425 days/year

    See
    http://mathforum.org/library/drmath/view/53917.html
    and
    http://www.tondering.dk/claus/cal/node3.html -
    SECTION00320000000000000000

    Regards,
    Nikolai - http://www.pvv.org/~nsaa/excel.html


  13. #13
    Bob Phillips
    Guest

    Re: Dates/ Ages

    Also check http://www.cpearson.com/excel/datedif.htm#Age

    --
    HTH

    Bob Phillips

    "Brian" <brian@NOSPAMwallytech.net> wrote in message
    news:dSWHe.10379$6%2.6970@fe10.lga...
    > Hello:
    > I was wondering if anyone could help me with a function in excel. I need

    to
    > be able to calc peoples ages into different cells.
    > For example:
    > Col B has the DOB
    > Col C I need the current Age with the current Date
    >
    > Col D as a Date and I need it the calc the age from that date to the DOB
    >
    > I need this ASAP. Can anyone help.
    > Thanks
    >
    >
    >




+ 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