# How to calculate age in Excel 2007, 2010, 2013, 2016 & 365

February 11, 2018 Useful Articles

To calculate a person (or anything else) age you basically subtract his date of birth from today’s date. However which date functions to use depends on the amount of precision and the output format you want.

Suppose that we want to calculate the age of someone who is born on 15/06/1973 and we have his birth date in cell A1.

1. If we want his age in whole number years only, e.g. 40 years, then we can use this formula:

2. If we want his age in whole numbers and a fraction of a year, e.g. 40.5 years, then we can use this formula:

3. If we want his age in years and months, then we can use a formula like this one:

The output of this formula will be as follows:

40 years and 2 months.

4. If we want to extend the previous formula to include days, then we can use a complex formula like this one:

The output of this formula will be as follows:

40 years, 2 months and 18 days.

This formula could yield a one day difference due to approxmation.

**What if you want to calculate the age in a target date other than today’s date?**

Well, simply put the target date in another cell and replace the function TODAY() with the reference of the target cell. In the previous example if we want to calculate the age in 31 July 1995, then we can put 31/7/1995 in cell B1 and modify the first formula to be like this:

**Note:**

Excel does not recognize dates before year 1900 (windows) or 1904(Macintosh). So formulas given above are also subject to Excel limitations.

It seems to get it right as long as the date in A1 is not a leap year. It could be solved by wrapping an IF-statement, such as =IF(MOD(YEAR(A1),4)=0,… around it.

There is

an obscure function which is not even documented by Microsoft, and when you start typing it, it’s not in the list of suggested formulae…

=DATEDIF(A1,A3,”y”)&” year(s), “&DATEDIF(A1,A3,”ym”)&” month(s) and “&DATEDIF(A1,A3,”md”)&” day(s)”

It works, but I get a little suspicious by the fact that MS are so secretive about it. Very strange indeed…

## Leave a Comment