• 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
267 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
  • Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.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
  • 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
  • Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
Products
  • Avast Ultimate Suite 2021 1 Year 10 Devices Global Avast Ultimate Suite 2021 1 Year 10 Devices Global
    Rated 5.00 out of 5
    $54.00
  • Windows 10 Pro Key Global 20 PC Windows 10 Pro Key Global 20 PC $50.00
  • Microsoft Visio 2019 professional Key Global Bind to your Microsoft Account Microsoft Visio 2019 professional Key Global Bind to your Microsoft Account
    Rated 4.96 out of 5
    $12.00
  • Visio Professional 2024 Visio Professional 2024 $33.00
  • Windows Server 2016 Standard Key Global Windows Server 2016 Standard Key Global
    Rated 4.80 out of 5
    $10.00
  • Microsoft Visual Studio 2019 Professional Key Microsoft Visual Studio 2019 Professional Key
    Rated 4.84 out of 5
    $15.00
  • Buy Office 2021 Professional Plus Key Global For 5 PC Buy Office 2021 Professional Plus Key Global For 5 PC
    Rated 5.00 out of 5
    $68.00
  • Office 2024 Home and Student Office 2024 Home and Student $88.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
  • 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
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.