How to Calculate Age in Excel

How to Calculate Age in Excel

How to Calculate Age (Days, Months or Years) in Excel

During this week we posted our first video from the Hack of the Week series where we showed you How to Calculate Age in Excel in Days, Months or Years. The trick shown in the video is a trick to combine Excel’s hidden function DATEDIF and IFERROR to create a new formula, ensuring a correct calculation of age in days, months or years without errors.

 

The DATEDIF function

Using the DATEDIF function on its own may result in a few errors and limitations, however our trick will allow you to use one single formula every time to calculate the correct age in days, months or years without errors.

Free Template and Video Tutorial showing How to Calculate Age in Excel

 

You can download now for free the Excel template with the formula demonstraded in the video below.

Other variations of the DATEDIF function

In addition to the example given in our video above, you can also try a few more variations of unit other than “Y“, “M” and “D” as detailed in Microsoft’s documentation and shown below:

DATEDIF(start_date,end_date,unit)

For instance, you can use =DATEDIF(“15-Jan-2019″,”1-Mar-2020″,”YM”) to calculate the number of complete months between 15 January and 1 March, which will result in 1 full month.

DATEDIF function variations of "unit" field from https://support.microsoft.com/en-us/office/datedif-function-25dba1a4-2812-480b-84dd-8b32a451b35c extracted on 5 August 2020