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

DATEDIF Function in Microsoft Excel

 
Boosting your skills in Microsoft Excel
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: What Is Datedif Function In Excel
created by Activia Training; 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 Microsoft Excel

7 Reasons Why You Should Learn How to Use Excel
7 Reasons Why You Should Learn How to Use Excel
Jordan James
Author: Jordan James
About the article
Summary
The Article shows how to boost productivity with Excel, Improve Quality of Work, Versatility, You will become a God in the Office!
[ close ]
What are Pivot Tables used for in Excel?
What are Pivot Tables used for in Excel?
Jordan James
Author: Jordan James
About the article
Summary
Pivot Tables are a powerful data analysis tool. But many don't know what they are for. Here we look at what they're for and why to use them.
[ close ]
Excel 2013 New Features
Excel 2013 New Features
Jordan James
Author: Jordan James
About the article
Summary
What's new in Excel 2013? Click to read the Activia Training quick guide to the new features in Microsoft Excel 2013.
[ close ]
10 Ways Excel Pivot Tables can help you.
10 Ways Excel Pivot Tables can help you.
Jordan James
Author: Jordan James
About the article
Summary
Pivot Tables are extremely useful in analysing data and seeing how its linked. This looks at 10 ways to use Pivot Tables properly.
[ close ]
The Top Ten Excel Functions You Should Know
The Top Ten Excel Functions You Should Know
Jordan James
Author: Jordan James
About the article
Summary
10 Microsoft Excel Functions that you should know. Knowing these Excel functions will make you more productive, and impact colleagues.
[ close ]
Simplify Microsoft Excel with the Right Training Course
Simplify Microsoft Excel with the Right Training Course
Jordan James
Author: Jordan James
About the article
Summary
You can play around with Microsoft Excel for hours, and still get nowhere! Here, we give you tips on how to find a training course to help
[ close ]
What are Macros used for in Excel?
What are Macros used for in Excel?
Jordan James
Author: Jordan James
About the article
Summary
Macros in Excel are incredibly powerful tools that can provide the user with large benefits. This article looks at what macros are for.
[ 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 Format Dates in Microsoft Excel
How to Format Dates in Microsoft Excel
Jordan James
Author: Jordan James
About the article
Summary
[ close ]
How to Use Shortcuts for Font Formatting in Excel
How to Use Shortcuts for Font Formatting in Excel
Jordan James
Author: Jordan James
About the article
Summary
Learn how to use shortcuts for font formatting in Microsoft Excel with this tutorial from Activia Training.
[ close ]
How to Use Dependent Dropdown Lists in Excel
How to Use Dependent Dropdown Lists in Excel
Jordan James
Author: Jordan James
About the article
Summary
Learn how to create and use dependent dropdown lists in Microsoft Excel with this tutorial from Activia Training.
[ close ]
How to Use Select Visible Cells in Excel
How to Use Select Visible Cells in Excel
Jordan James
Author: Jordan James
About the article
Summary
Learn how to use Select Visible Cells in Microsoft Excel with this tutorial 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 Microsoft Software blog categories

Click a panel to visit the main category pages for the blog
Microsoft Excel
Microsoft Excel
[ This category ]
Microsoft PowerPoint
Microsoft PowerPoint
Microsoft Word
Microsoft Word
Microsoft Project
Microsoft Project
Microsoft Visio
Microsoft Visio
Microsoft Access
Microsoft Access

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