Dates/ Ages

B

Brian

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
 
J

Jerry W. Lewis

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
 
B

Brian

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.
 
M

Max

:
....
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"
 
A

Arvi Laanemets

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.
 

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