• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

How to use the DATEDIF function to calculate the time interval between two dates in Excel

0 Comments

How to use the DATEDIF function to calculate the time interval between two dates in Excel: Excel provides users with many functions to calculate dates and times. In this article, Buffcom.net will introduce how to use the DATEDIF function to calculate the time between two dates in Excel.

1. DATEDIF function structure

Function syntax: =DATEDIF(start_date, end_date, unit)
Where:

  • Start_date: required argument, is the first date or start date of a time period.
  • End_date: required argument, is the first date or end date of a time period.
  • Unit: required argument, is the type of information you want to return.

Types of Unit argument:

  • Y: Number of completed years in the time period.
  • M: Number of completed months in the time period.
  • D: Number of days in the time period.
  • MD: Number of days between the days in start_date and end_date. Ignore the month and year.
  • YM: Number of months between the months in start_date and end_date. Ignore the day and year.
  • Yd: Number of days between the days in start_date and end_date. Ignore the year.

Note: If start_date is greater than end_date, the function will return the #NUM! error.

2. How to use the DATEDIF function

For example, we need to calculate the time period between two dates, 4/5/2015 and 11/12/2019, using different Unit arguments as shown in the image below.

How to use the DATEDIF function to calculate the time interval between two dates in Excel

How to use the DATEDIF function to calculate the time interval between two dates in Excel

As we can see, the function will calculate differently depending on the Unit argument:

  • Y: Number of years between the two dates 4/5/2015 and 11/12/2019.
  • M: Number of months between the two dates 4/5/2015 and 11/12/2019.
  • D: Number of days between the two dates 4/5/2015 and 11/12/2019.
  • MD: Number of days between the days 4 and 11.
  • YM: Number of months between the months 5 and 12.
  • Yd: Number of days between the two dates 4/5 and 11/12.

Therefore, this article has instructed you on how to use the DATEDIF function in Excel. Wish you success!

Rate this post
34
269 Views
How to use INDIRECT function to create a reference range in ExcelPrevHow to use INDIRECT function to create a reference range in ExcelApril 25, 2023
How to Quickly and Conveniently Recover an Unsaved FileApril 25, 2023How to Quickly and Conveniently Recover an Unsaved FileNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Windows 11 Pro Product Activation Key Windows 11 Pro Product Activation Key
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 1 Year Global AVG Internet Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $30.00
  • Kaspersky Total Security 2021 1 year 1 device key Global Kaspersky Total Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $27.00
  • Avast Ultimate Suite 2021 2 Years 10 Devices Global Avast Ultimate Suite 2021 2 Years 10 Devices Global
    Rated 5.00 out of 5
    $77.00
  • Buy Windows 11 Pro CD Key License Buy Windows 11 Pro CD Key License
    Rated 5.00 out of 5
    $6.00
Products
  • Microsoft Visio Professional 2016 Key 1PC Microsoft Visio Professional 2016 Key 1PC $9.00
  • Project Professional 2010 Microsoft Project Professional 2010 - 1PC $9.00
  • microsoft office home and business 2019 pcmac key Microsoft Office Home And Business 2019 (MAC) key bind to your Microsoft account
    Rated 4.95 out of 5
    $30.00
  • Microsoft Office Professional Plus 2010 retail Microsoft Office Professional Plus 2010 retail Key Global - 5 PC
    Rated 4.96 out of 5
    $15.00
  • Kaspersky Standard - 1 Device, 1 Year (Global License) Kaspersky Standard - 1 Device, 1 Year (Global License) $21.00
  • Kaspersky Internet Security 2021 1 year 1 device key Global Kaspersky Internet Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $24.00
  • Kaspersky Total Security 2021 1 year 1 device key Global Kaspersky Total Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $27.00
  • Microsoft Project 2016 professional CD Key Global Microsoft Project 2016 professional CD Key Global
    Rated 4.97 out of 5
    $9.00
  • Kaspersky Internet Security 2021 1 year 5 devices key Global Kaspersky Internet Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $45.00
  • Windows 10 Pro Key Global 20 PC Windows 10 Pro Key Global 20 PC $50.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.