Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

calculating ages dates

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Calculating ages from dates

Calculating ages from dates

ResolvedVersion 2003

Jenny has attended:
Excel Intermediate course

Calculating ages from dates

If date of birth is given, and a further date, how can the age of the person at the further date be calculated?

RE: Calculating ages from dates

Hello Jenny

Thank you for your question and welcome to the forum.

You can use a function called Datedif to do this calculation for you. It's a weird little function because you won't find it in the Insert Function dialogue box, it has to be input manually (typed) into a spreadsheet.

So you will need to have both dates in the spreadsheet in different cells. For example say you have the DOB in A1 and the second (further) date in cell B1.

Then type the function into a separate cell:
=datedif(A1,B1,"y")

The syntax (structure) of the function is as follows:
=datedif(start date,end date,unit)

where start date is the earlier of the two dates;
end date is the latter of the two dates;
and unit is the measurement of time (days, months, years) that you want the result to be displayed in. Further explanation of the units you can use can be found here:
http://www.ozgrid.com/Excel/calculate-age.htm

I hope this helps.

Kind regards
Amanda

Excel tip:

Quickly insert a function

In Excel 97 and 2000 it was known as the Paste Function dialog box, these days it's known as the Insert Function dialog box. Regardless, one has to choose Insert|Function. or the fx button to open it up. There is, however, a non-mousey way to get hold of the Insert Function dialog box: press Shift+F3 in a blank cell to open the Insert Function dialog.

Press Shift+F3 after a function name and open bracket to open the Function Arguments dialog. For example, type =VLOOKUP( into a cell and press Shift+F3 to obtain a detailed description of VLOOKUP's arguments.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.