Re: what formula do i need to calculate a persons age



On Wed, 20 Sep 2006 07:34:09 +1000, JC <jc@xxxxxxxxxxxxxxx> wrote:

On Tue, 19 Sep 2006 02:49:02 -0700, brenner <brenner@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

using todays date what formula do i use to calculate a person age using their
date of birth


The complete formula is

=DATEDIF(A1,TODAY(),"Y")&" years "&DATEDIF(A1,TODAY(),"YM")&" months
"&DATEDIF(A1,TODAY(),"MD")&" days"

You can trim the formula to suit your needs to give only x years or x years y
months or have the full formula give you x tears y months z days.

There is a minor error in leap years for people born on 28th February - the
formula assumes that the DOB is 1st March.

Correction - the minor error arises if the person is born on 29th February i.e.
born in a leap year. The formula is correct for leap years but assumes that
the DOB is 1st March in non leap years.

There was some argument when this was last discussed if this really was an
error. The purists argued that people born on 29th February only have a
birthday every 4 years whereas the counter argument said that they have
birthdays on 29th February in leap years and 1st March in non leap years.

Since I wasn't born, or know anyone who was born, on 29th February I have no
direct knowledge how people in this predicament handle their birthdays. However,
I would subscribe to the birthday each year rather than one every 4 years,
particularly for a child.
--

Cheers . . . JC
.



Relevant Pages

  • Re: Birthday Problem
    ... >>problem formulation is such that it really means something more ... >>the formula should be suitably modified for leap year. ... how many people it will take to find your birthday. ... anyone was born on 1-1 there is no telling how many people you would ...
    (comp.lang.cpp)
  • Re: Was this a lie detecion?
    ... on, and save doing a calendar search, have no idea how to work it out. ... Find the day of your next birthday, or your last one if it was between ... was born on November 28th 1987, to make me 20 this November coming. ... except for leap years when it's 2 days ahead. ...
    (uk.legal)
  • Re: Happy Rossinis birthday!
    ... actual birth date. ... That's fine, except that if this had not been a leap year, ... My uncle-by-marriage, born in 1916, would have been ... My birthday was on the 28th. ...
    (alt.usage.english)
  • Re: Birthday calculations
    ... btw you could simpify to ... That depends on what the convention is for those born on 29th Feb. Personally, ... I would celebrate my birthday on 28th Feb in non leap years if I was born on ...
    (microsoft.public.excel.misc)
  • Re: Judgement Day
    ... fabric was tart, upset, and opts next to the birthday. ... leap the systematic disciplinary compositions before Pilar does? ...
    (sci.crypt)