zandax online course logo
 
 
 
 
zandax 10 year anniversary
 
 
 
 
 
 
Home   >  ZandaX Blogs   >  Business Blog   >  Video Tutorials Articles   > 
DATEDIF Function in Microsoft Excel

DATEDIF Function in Microsoft Excel

 
Upgrading your skills, and your life, with ZandaX
What is the DATEDIF function and how can you use it? Learn how to do it in this free Excel video tutorial from ZandaX Training.
 
Article author: Jordan James
      Written by Jordan James
       (2-minute read)
The undocumented DATEDIF function can be incredibly useful when calculating the difference between dates in Excel. It is a bit of a hidden gem, as it doesn't appear in the list of formulas or if you search for it using the Insert Function dialog box. In fact, even when you are typing in the formula, the small screen tips do not appear, as they do with a number of other functions.

It can be used in many different ways, but perhaps one of its most common uses is to calculate a person's age.


What Is Datedif Function In Excel Video

Watch to see what is datedif function in excel

[ Video tutorial created by Activia Training and purchased by ZandaX ]


Using the DATEDIF Function

Take the scenario below as an example:

Microsoft Excel DATEDIF function

Step 1. We know the date of birth of the candidates and the current date is in H1 in the form of =TODAY()

Step 2. So we can insert a little formula in C2 to work out their age. Type in =DATEDIF(B2, $H$1, "Y")

Datedif function in Microsoft Excel

The first part of the formula refers to the first date value (i.e. the DOB). The second part refers to the end date (i.e. today's date) and the final part ("Y") represents how you want to display the interval between the two dates.

In this example, "Y" is used, so the answer will display the number of complete years between the two dates. It's great to calculate ages because it will not round the figure up.

You can use this formula to calculate the difference between dates in years, days and months. You can also work out the difference between months, ignoring the year and day, and the difference between days, ignoring the month and the year or just ignoring the year.

So the difference in days between 1st Jan 2014 and the 5th Feb 2015 using the "YD" interval, is 35.

Date Intervals and Explanations

Y: The number of complete years.
M: The number of complete months.
D: The number of days.
MD: The difference between the days (months and years are ignored).
YM: The difference between the months (days and years are ignored).
YD: The difference between the days (years are ignored).

Improve Your Excel Skills


If you'd like to learn more about Microsoft Excel, why not take a look at how we can help?

We have a whole range of online courses for all skill levels.
RRP from $39 – limited time offer just $8.99

More Articles on Video Tutorials

Why Do Arrow Keys Move the Screen in Excel Worksheet?
Why Do Arrow Keys Move the Screen in Excel Worksheet?
Jordan James
Author: Jordan James
About the article
Summary
Learn why arrow keys move the screen in Excel Worksheet with this free article and video tutorial from Activia Training.
[ close ]
How To Add Motion Paths To Animations In PowerPoint
How To Add Motion Paths To Animations In PowerPoint
Jordan James
Author: Jordan James
About the article
Summary
Learn how to add motion paths to animations in Microsoft PowerPoint from this tutorial from Activia Training.
[ close ]
How to Work Out Percentage Increase in Microsoft Excel
How to Work Out Percentage Increase in Microsoft Excel
Jordan James
Author: Jordan James
About the article
Summary
Learn how to work out a percentage increase in Microsoft Excel on the Activia Training website.
[ close ]
How to Select Data in Excel Using Keyboard
How to Select Data in Excel Using Keyboard
Jordan James
Author: Jordan James
About the article
Summary
Learn how to quickly select data in Excel using the keyboard with this tutorial from Activia Training.
[ close ]
How to Format Dates in Microsoft Excel
How to Format Dates in Microsoft Excel
Jordan James
Author: Jordan James
About the article
Summary
[ close ]
How to Format Cells in Microsoft Excel
How to Format Cells in Microsoft Excel
Jordan James
Author: Jordan James
About the article
Summary
[ close ]
How to Reduce File Size in Microsoft Excel
How to Reduce File Size in Microsoft Excel
Jordan James
Author: Jordan James
About the article
Summary
[ close ]
How to Save Excel File in PDF or XPS
How to Save Excel File in PDF or XPS
Jordan James
Author: Jordan James
About the article
Summary
[ close ]
How to Zoom in Excel
How to Zoom in Excel
Jordan James
Author: Jordan James
About the article
Summary
Find out how to zoom in and out of spreadsheets in Microsoft Excel with this guide from Activia Training.
[ close ]
How to Use the Shift Key in Excel
How to Use the Shift Key in Excel
Jordan James
Author: Jordan James
About the article
Summary
Learn how to use the shift key to navigate around your spreadsheet in Microsoft Excel, with this guide from Activia Training.
[ close ]
How to Use F3 to Paste Names in Excel
How to Use F3 to Paste Names in Excel
Jordan James
Author: Jordan James
About the article
Summary
Find out how to use F3 to paste names in Microsoft Excel with this guide from Activia Training.
[ close ]
How to Export Quick Access Toolbar in Excel
How to Export Quick Access Toolbar in Excel
Jordan James
Author: Jordan James
About the article
Summary
Find out how to export your customised Quick Access Toolbar in Excel, with this guide from Activia Training.
[ close ]
 

Write for us on the ZandaX blog

We're always looking for guest contributors to increase the variety and diversity of what we present.

Click to see how you can write for us:

 

The ZandaX Business Skills blog categories

Click a panel to visit the main category pages for the blog
Career Success
Career Success
Marketing
Marketing
Presentation Skills & Public Speaking
Presentation Skills & Public Speaking
Customer Service
Customer Service
Microsoft Software
Microsoft Software

ZandaX Blog Contents

Want to see them all? Click to view a full list of articles in our blogs.

 
zandax online courses logo
"ZandaX courses are such great value, and with the help and support they give, there's no better option in the market"
ZandaX LinkedIn logo
ZandaX YouTube logo
ZandaX FaceBook logo
Course Categories
 
All content © ZandaX 2025