In some cases, you may want to add a specific number of years to a date, but it cannot directly add number of years to a given date like adding days, such as, "2020/4/1"+4 returns 2020/4/5. Here in this tutorial, it provides a formula to quickly add years to date in Excel.
Generic formula:
DATE(YEAR(date)+years,MONTH(date),DAY(date))
Arguments
Date: the date you used to add years.
Years: a number that represents the number of years you want to add to the given date. It can be positive or negative, the formula subtracts years while the argument years is negative.
Return value
Return a value in date format.
How this formula work
Here takes an instance to explain how the formula works in Excel. Adding number of years which is placed in cell C3 to the date in cell B3, please use below formula:
=DATE(YEAR(B3)+C3,MONTH(B3),DAY(B3))
Press Enter key to get the end date.
Explanation
YEAR, MONTH and DAY functions separately get the year, month and day as relative integers from the given date.
Date function is used to create a date based on the given year, month, and day.
Add Hours Minutes Seconds To Time Supposing there is a list of time values in Excel, now you want to add 3 hours 45 minutes and 20 seconds to the time values, Excel provides two formulas to help you.
Extract Or Get Date Only From The Datetime In Excel To extract only date from a list of datetime cells in Excel worksheet, the INT, TRUNC and DATE functions can help you to deal with this job quickly and easily.
Add Minutes To Time This tutorial provides formulas and explains how to add minutes to time in Excel.
Excel Formula: Add Months To Date It introduces formulas to add months to a given date in Excel, and explains how the formulas work.
Relative Functions
Excel Date Function DATE function can help us to combine year, month and day numbers from separate cells to a valid date.