Convert date to Age

D

D G

I need to convert a date of birth to age. However, I need to base it
on Sept 1, 2011. I need to know how old (years only) that person is
on that date. Does anyone know how to do this. Why is September 1,
2011 so important. It allows me to determine if they are eligible(too
young or too old) to play a sport.
 
C

Claus Busch

Hi,

Am Wed, 7 Sep 2011 12:25:11 -0700 (PDT) schrieb D G:
I need to convert a date of birth to age. However, I need to base it
on Sept 1, 2011. I need to know how old (years only) that person is
on that date. Does anyone know how to do this. Why is September 1,
2011 so important. It allows me to determine if they are eligible(too
young or too old) to play a sport.

date of birth in A1, Sept 1, 2011 in B1 then:
=DATEDIF(A1,B1,"Y")


Regards
Claus Busch
 
R

Roger Dodger

What about
enter this in C1
=($B$1-A1)/365.25

B1 is 1-9-11
A1 is date of birth
change format in column C to number with 1 decimal place.
 
R

Ron Rosenfeld

What about
enter this in C1
=($B$1-A1)/365.25

B1 is 1-9-11
A1 is date of birth
change format in column C to number with 1 decimal place.

According to the OP, a person has to be a certain age as of Sep 1. Using your method, someone who is born on 15 Sep 2000 would show as being 11.0 years old. Since his birthday would not occur for another two weeks, he would be shown as being eligible for sports when he was not.
 
R

Ron Rosenfeld

I need to convert a date of birth to age. However, I need to base it
on Sept 1, 2011. I need to know how old (years only) that person is
on that date. Does anyone know how to do this. Why is September 1,
2011 so important. It allows me to determine if they are eligible(too
young or too old) to play a sport.

The DATEDIF function should work properly for your purpose. However, it has not appeared in the HELP context of Excel except in Excel 2000 and, especially since a serious bug has crept into one of the parameters, is thought to be unsupported by MS.

If you would prefer another formula, which does not use DATEDIF, I would suggest:

=YEAR(TargetDate)-YEAR(DOB)-
(DATE(YEAR(TargetDate),MONTH(DOB),DAY(DOB))>TargetDate)

That merely subtracts the year of birth in DOB from the year in TargetDate (nominally 1-sep-2011), but adds back one if the birthday occurs later in the year than TargetDate.

The only issue of which I am aware, with that algorithm (which would not apply in your case), would be the determination of a leaplings birthday if TargetDate were 28 Feb; the leaplings birthday would not occur until 1 March. Depending on your jurisdiction, that may or may not be appropriate.
 
R

Rich/rerat

Roger Dodger,
If you change the resulting cell to two (2) decimal places, in the cell
format, it would be better. Or better yet, use the "rundown function such
as:
" =rounddown(($B$1-A1)/365.25,0) " (w/o quotes) .

Place minimum age in Cell C1 and using:
" =If(rounddown(($B$1-A1)/365.25,0)<$C$1."InEligible",Eligible) " (w/o
quotes) .

--
Rich/rerat
(RRR News) (message rule)
((Previous Text Snipped to Save Bandwidth When Appropriate))


What about
enter this in C1
=($B$1-A1)/365.25

B1 is 1-9-11
A1 is date of birth
change format in column C to number with 1 decimal place.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top