Excel DATEDIF Function | Excel One Minute Quick Reference

Posted on:  10/07/2021
Excel DATEDIF Function |  Excel One Minute Quick Reference

Need to know the number of years, months, or days between two dates? Excel's DATEDIF function will calculate it for you. This is a great function if you work in Human Resources (HR), or any job position where you need the difference in dates. I also use the TODAY function - which I recently covered in two videos and mixed and absolute reference.

DATEDIF Function in Excel

DATEDIF - find years, months, and days between two dates

YouTube Video

Other Excel articles

Syntax for DATEDIF

 

=DATEDIF(start_date,end_date,unit)

 

Units in DATEDIF

UNIT Description
Y The number of complete years in the period.
M The number of complete months in the period.
D The number of days in the period.
MD The difference between the days in start_date and end_date. The months and years of the dates are ignored.
YM The difference between the months in start_date and end_date. The days and years of the dates are ignored.

 

DATEDIF Units - Microsoft Excel

DATEDIF Units - YM is used in this example

Other Excel Articles

Mastering Excel Slicers: A Comprehensive Guide

Mastering Excel Slicers: A Comprehensive Guide

Mastering Loan Amortization: A Comprehensive Guide to Understanding and Comparing Loans

Mastering Loan Amortization: A Comprehensive Guide to Understanding and Comparing Loans

Analyzing 50+ Years of Mortgage Rates in Excel: Insights and Trends

Analyzing 50+ Years of Mortgage Rates in Excel: Insights and Trends

Social Security - Breakeven point in Years using Excel

Social Security - Breakeven point in Years using Excel

Creating a Column Chart using S&P 500 data with Positive and Negative Colors in Excel

Creating a Column Chart using S&P 500 data with Positive and Negative Colors in Excel

Optimizing Excel Formulas with Copilot: A Comprehensive Guide

Optimizing Excel Formulas with Copilot: A Comprehensive Guide

Chris Menard

Chris Menard is a Microsoft Trainer (MCT) and works as a full-time Trainer at BakerHostetler - one of the largest law firms in the US. Chris runs a YouTube channel with 900+ technology videos that cover various tools such as Excel, Word, Zoom, Teams, Gmail, Copilot, Google Calendar, and Outlook. To date, the channel has helped over 20 million viewers. Menard also does 2 to 3 public speaking events yearly, presenting at the Administrative Professional Conference (APC), the EA Ignite Conference, the University of Georgia, and CPA conferences. You can connect with him on LinkedIn at https://chrismenardtraining.com/linkedin or watch his videos on YouTube at https://chrismenardtraining.com/youtube.

Categories