The fastest way to add years to a date in Excel

To add years to a date in Excel, use the DATE function combined with the YEAR function. This method works in all versions of Excel and handles leap years automatically.

The formula is: =DATE(YEAR(A1)+5,MONTH(A1),DAY(A1))

Replace A1 with the cell containing your date, and replace 5 with the number of years you want to add. This formula extracts the year from your original date, adds your number to it, then rebuilds the date with the same month and day.

Key Takeaways

  • The DATE and YEAR formula works in Excel Online, Excel for Mac, and all Windows versions without needing special add-ins.
  • You can subtract years by using a negative number in the formula, such as =DATE(YEAR(A1)-3,MONTH(A1),DAY(A1)).
  • If your original date is February 29 and you add years, Excel will automatically adjust to February 28 in non-leap years.
  • You can copy the formula down a column to add the same number of years to multiple dates at once.

Setting up the formula in your spreadsheet

Start by putting your original date in a cell — let's say cell A1. In the cell where you want the new date to appear (such as B1), type the formula exactly as shown: =DATE(YEAR(A1)+5,MONTH(A1),DAY(A1))

Press Enter. Excel will display the new date in B1. The date will be formatted the same way as your original date, so if A1 shows "1/15/2020", B1 will show "1/15/2025".

If the result shows a number like "45340" instead of a date, right-click the cell, select "Format Cells", choose "Date" from the Category list, and click OK. Excel will then display it as a proper date.

Adding different numbers of years to different dates

If you want to add a different number of years to each row, put the number of years in its own column. For example, put your dates in column A and the number of years to add in column B.

In column C, use this formula: =DATE(YEAR(A1)+B1,MONTH(A1),DAY(A1))

Now you can change the number in column B for each row, and the formula will add that specific number of years to the date in column A. This is useful when you're working with different time periods for different records.

Copying the formula down to multiple rows

Once you've entered the formula in one cell, you can copy it down to apply it to many dates at once. Click the cell containing your formula (B1 in our example), then look for the small square in the bottom-right corner of the cell.

Double-click that square, and Excel will automatically copy the formula down to every row that has data in column A. Alternatively, you can click and drag that square downward to copy the formula to as many rows as you need.

Excel will adjust the cell references automatically — so the formula in B2 becomes =DATE(YEAR(A2)+5,MONTH(A2),DAY(A2)), and so on down the column.

Handling leap year dates

If your original date is February 29 (a leap year date) and you add years that land on a non-leap year, Excel automatically adjusts the result to February 28. This is the standard behavior and prevents errors.

For example, if A1 contains February 29, 2020, and you use =DATE(YEAR(A1)+1,MONTH(A1),DAY(A1)), the result will be February 28, 2021, because 2021 is not a leap year. Excel handles this without any extra steps from you.

Subtracting years instead of adding them

To subtract years from a date, use a negative number in the formula. For example, =DATE(YEAR(A1)-3,MONTH(A1),DAY(A1)) will subtract 3 years from the date in A1.

This works exactly the same way as adding years — Excel extracts the year, subtracts your number, and rebuilds the date. You can use this to calculate dates in the past, such as finding a date that was 10 years ago or determining when a warranty expired.

Troubleshooting common problems

If your formula returns an error like #VALUE!, the most common cause is that the cell you're referencing doesn't actually contain a date — it might contain text that looks like a date. Try clicking the cell and checking the formula bar to see exactly what's stored there.

If the result shows as a number instead of a date, the cell formatting is set to "Number" instead of "Date". Right-click the cell, select "Format Cells", click the "Number" tab, choose "Date" from the Category list, pick your preferred date format, and click OK.

If you're working with dates from different sources (like imported data), dates are sometimes stored as text. You may need to convert them to actual dates first using the DATEVALUE function: =DATE(YEAR(DATEVALUE(A1))+5,MONTH(DATEVALUE(A1)),DAY(DATEVALUE(A1)))

Frequently Asked Questions

Can I add months or days the same way?

Yes. To add months, use =DATE(YEAR(A1),MONTH(A1)+6,DAY(A1)). To add days, you can simply use =A1+10 (where 10 is the number of days). The DATE function method works for months too, but for days, simple addition is faster.

What if I want to add years and months together?

Combine both in one formula: =DATE(YEAR(A1)+2,MONTH(A1)+3,DAY(A1)). This adds 2 years and 3 months. If the month calculation goes over 12, Excel automatically rolls it into the next year.

Does this work in Google Sheets?

Yes, the DATE, YEAR, MONTH, and DAY functions work identically in Google Sheets. The formula =DATE(YEAR(A1)+5,MONTH(A1),DAY(A1)) will produce the same result in both programs.

Can I add a decimal number of years, like 2.5 years?

The DATE function requires whole numbers for the year, so =DATE(YEAR(A1)+2.5,MONTH(A1),DAY(A1)) will round to 2 or 3 years depending on your Excel settings. If you need precise fractional years, use =A1+(365.25*2.5) to add 2.5 years as days, though this won't account for leap years perfectly.