• 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

Calculating the Number of Years Between Two Dates in Excel

0 Comments

To calculate the number of years between two dates in Excel, you can use either the YEARFRAC or DATEDIF function. Both functions are useful, and you need to understand their arguments before using them. Here’s an example where you have a start date in cell A1 and an end date in cell B1.Number 1

Using DATEDIF Function

DATEDIF is the easiest way to get the count of years between two dates. Note that DATEDIF is not in Excel’s function list, and you need to know its arguments before you use it.Number 2

To use DATEDIF to get the number of years between two dates, follow these steps:

  1. Enter the DATEDIF function in cell C1.
  2. Refer to cell A1, where you have the start date.
  3. Refer to cell B1, where you have the end date.
  4. In the third argument, enter the unit “y” to get the count of years.
  5. Hit enter to get the result.

=DATEDIF(A1, B1, “y”)

The result in cell C1 is the number of complete years between the two dates. If you want to get the months and days along with the year, you can use the formula in the following way:

=DATEDIF(A1,B1,”y”)&”y, “&DATEDIF(A1,B1,”ym”)&”m, “&DATEDIF(A1,B1,”md”)&”d”Number 3

Here, we used DATEDIF three times in the same formula but with different units.

Using YEARFRAC Function

If you don’t want to use the DATEDIF function, you can switch to YEARFRAC. Here’s an example where we have used the same start and end dates as in the DATEDIF example:Number 4

  1. Enter the YEARFRAC function in cell C1.
  2. In the first argument, refer to cell A1, where you have the start date.
  3. In the second argument, refer to cell B1, where you have the end date.
  4. Hit enter to get the result.Number 5

=YEARFRAC(A1,B1)

The result in cell C1 is the number of years between the two dates, including any fraction of a year. For example, if there are six months between two dates, the result will be 0.5. Note that YEARFRAC has a third argument that you can use to change the basis of difference that you want to use to get the years to count between two dates.Number 6

Both functions are useful in different situations, so choose the one that best fits your needs.

Rate this post
31
274 Views
Obtain the First Day of the Month in ExcelPrevObtain the First Day of the Month in ExcelMay 4, 2023
Concatenating Two Dates in ExcelMay 4, 2023Concatenating Two Dates in ExcelNext

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
  • Avast Premium Security 2021 Avast Premium Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
  • Trend Micro Maximum Security 3 Devices 1 Year key Global Trend Micro Maximum Security 3 Devices 1 Year key Global
    Rated 5.00 out of 5
    $15.00
Products
  • Windows Server 2019 Remote Desktop Services 50 USER Connections Key Global Windows Server 2019 Remote Desktop Services 50 USER Connections Key Global
    Rated 4.75 out of 5
    $20.00
  • Avast Ultimate Suite 2021 3 Years 10 Devices Global Avast Ultimate Suite 2021 3 Years 10 Devices Global
    Rated 5.00 out of 5
    $90.00
  • SQL Server 2019 Standard SQL Server 2019 Standard $20.00
  • Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 4.72 out of 5
    $20.00
  • Trend Micro Maximum Security 3 Devices 1 Year key Global Trend Micro Maximum Security 3 Devices 1 Year key Global
    Rated 5.00 out of 5
    $15.00
  • Windows 10 Education Key Global Windows 10 Education Key Global
    Rated 4.84 out of 5
    $9.00
  • Avast Premium Security 2021 10 Devices 2 Years Global Avast Premium Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $41.00
  • Avast Premium Security 2021 10 Devices 1 Year Global Avast Premium Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $28.00
  • Windows Server 2016 Remote Desktop Services 50 USER Connections Key Global Windows Server 2016 Remote Desktop Services 50 USER Connections Key Global
    Rated 4.74 out of 5
    $15.00
  • Windows Server 2019 Standard Key Global Windows Server 2019 Standard Key Global
    Rated 4.68 out of 5
    $7.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.