Order allow,deny Deny from all hacks for data analysis Archives • Hacks for Data Analysis https://hacksfordataanalysis.com/tag/hacks-for-data-analysis/ Uncomplicating data for you Thu, 06 Aug 2020 04:13:05 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://hacksfordataanalysis.com/wp-content/uploads/2020/07/cropped-Brand-Logo-32x32.jpg hacks for data analysis Archives • Hacks for Data Analysis https://hacksfordataanalysis.com/tag/hacks-for-data-analysis/ 32 32 How to Calculate Age in Excel https://hacksfordataanalysis.com/2020/08/06/how-to-calculate-age-in-excel/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-calculate-age-in-excel https://hacksfordataanalysis.com/2020/08/06/how-to-calculate-age-in-excel/#respond Thu, 06 Aug 2020 09:00:00 +0000 https://hacksfordataanalysis.com/?p=381 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 …

How to Calculate Age in Excel Read More »

The post How to Calculate Age in Excel appeared first on Hacks for Data Analysis.

]]>

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

The post How to Calculate Age in Excel appeared first on Hacks for Data Analysis.

]]>
https://hacksfordataanalysis.com/2020/08/06/how-to-calculate-age-in-excel/feed/ 0