Adding years to date in excel

Add or subtract days from a date

Suppose that a bill of yours is due on the second Friday of each month. You want to transfer funds to your checking account so that those funds arrive 15 calendar days before that date, so you’ll subtract 15 days from the due date. In the following example, you’ll see how to add and subtract dates by entering positive or negative numbers. 

Add or subtract days from a date with =A2+B2, where A2 is a date, and B2 is the number of days to add or subtract.

  1. Enter your due dates in column A.

  2. Enter the number of days to add or subtract in column B. You can enter a negative number to subtract days from your start date, and a positive number to add to your date.

  3. In cell C2, enter =A2+B2, and copy down as needed.

Add or subtract months from a date with the EDATE function

You can use the EDATE function to quickly add or subtract months from a date.

The EDATE function requires two arguments: the start date and the number of months that you want to add or subtract. To subtract months, enter a negative number as the second argument. For example, =EDATE(«9/15/19»,-5) returns 4/15/19.

Use EDATE to add or subtract months from a date. In this case, =EDATE(A2,B2) where A2 is a date, and B2 has the number of months to add or subtract.

  1. For this example, you can enter your starting dates in column A.

  2. Enter the number of months to add or subtract in column B. To indicate if a month should be subtracted, you can enter a minus sign (-) before the number (e.g. -1).

  3. Enter =EDATE(A2,B2) in cell C2, and copy down as needed.

    Notes: 

    • Depending on the format of the cells that contain the formulas that you entered, Excel might display the results as serial numbers. For example, 8-Feb-2019 might be displayed as 43504.

    • Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2010 is serial number 40179 because it is 40,178 days after January 1, 1900.

    • If your results appear as serial numbers, select the cells in question and continue with the following steps:

      • Press Ctrl+1 to launch the Format Cells dialog, and click the Number tab.

      • Under Category, click Date, select the date format you want, and then click OK. The value in each of the cells should appear as a date instead of a serial number.

Add or subtract years from a date

In this example, we’re adding and subtracting years from a starting date with the following formula:

=DATE(YEAR(A2)+B2,MONTH(A2),DAY(A2))

Add or subtract years from a starting date with =DATE(YEAR(A2)+B2,MONTH(A2),DAY(A2))

How the formula works:

  • The YEAR function looks at the date in cell A2, and returns 2019. It then adds 3 years from cell B2, resulting in 2022.

  • The MONTH and DAY functions only return the original values from cell A2, but the DATE function requires them.

  • Finally, the DATE function then combines these three values into a date that’s 3 years in the future — 02/08/22.

Add or subtract a combination of days, months, and years to/from a date

In this example, we’re adding and subtracting years, months and days from a starting date with the following formula:

=DATE(YEAR(A2)+B2,MONTH(A2)+C2,DAY(A2)+D2)

Use the DATE function to add or subtract years, months, or days to/from a date.

How the formula works:

  • The YEAR function looks at the date in cell A2, and returns 2019. It then adds 1 year from cell B2, resulting in 2020.

  • The MONTH function returns 6, then adds 7 to it from cell C2. This gets interesting, because 6 + 7 = 13, which is 1-year and 1-month. In this case, the formula will recognize that and automatically add another year to the result, bumping it from 2020 to 2021.

  • The DAY function returns 8, and adds 15 to it. This will work similarly to the MONTH portion of the formula if you go over the number of days in a given month.

  • The DATE function then combines these three values into a date that is 1 year, 7 months, and 15 days in the future — 01/23/21.

Here are some ways you could use a formula or worksheet functions that work with dates to do things like, finding the impact to a project’s schedule if you add two weeks, or time needed to complete a task.

Let’s say your account has a 30-day billing cycle, and you want to have the funds in your account 15 days before the March 2013 billing date. Here’s how you would do that, using a formula or function to work with dates.

  1. In cell A1, type 2/8/13.

  2. In cell B1, type =A1-15.

  3. In cell C1, type =A1+30.

  4. In cell D1, type =C1-15.

    cakculate date

Add months to a date

We’ll use the EDATE function and you’ll need the start date and the number of months you want to add. Here’s how to add 16 months to 10/24/13:

use EDATE formula to add months to a date

  1. In cell A1, type 10/24/13.

  2. In cell B1, type =EDATE(A1,16).

  3. To format your results as dates, select cell B1. Click the arrow next to Number Format, > Short Date.

Subtract months from a date

We’ll use the same EDATE function to subtract months from a date.

Type a date in Cell A1 and in cell B1, type the formula =EDATE(4/15/2013,-5).

Subtract months from a date

Here, we’re specifying the value of the start date entering a date enclosed in quotation marks.

You can also just refer to a cell that contains a date value or by using the formula =EDATE(A1,-5)for the same result.

More examples

To add years to or subtract years from a date

Adding and subtracting dates examples

Start Date

Years added or subtracted

Formula

Result

10/24/2013

3 (add 3 years)

=DATE(YEAR(A2)+B2,MONTH(A2),DAY(A2))

10/24/2016

10/24/2013

-5 (subtract 5 years)

=DATE(YEAR(A4)+B4,MONTH(A4),DAY(A4))

10/24/2008

Return to Excel Formulas List

Download Example Workbook

Download the example workbook

This tutorial will demonstrate how to add (or subtract) years to a date in Excel and Google Sheets. 

Add Years to Date Main

Add Years to a Date

The easiest way to add years to a date is with the EDATE Function. The EDATE Function adds a specified number of months to a date. By adding months in multiplies of 12 (12,24,36, etc.) you can add years to a date.

Add 1 Year to a Date

This example will add 1 year to a date:

=EDATE(B3,12)

Add 1 Year to Date

Add 5 Years to a Date

This example will add 5 years to a date:

=EDATE(B3,12*5)

Add 5 Years to Date

Subtract Years From a Date

To subtract years from a date, simply enter a negative number of months into the EDATE Function:

=EDATE(B3,-12*3)

subtract 3 years

Add Years with DATE Function

Another way to add years to a date is with the YEAR, MONTH, DAY and DATE Functions:

=DATE(YEAR(B3),(12*3+MONTH(B3)),DAY(B3))

Add Years with DATE

The DATE Function creates a date using a specified Year, Month, and Day. We populate the DATE function with the current date’s year, month + a number of months and day using the YEAR, MONTH, and DAY Functions.

Subtract Years with DATE Function

Of course the same logic applies with subtracting dates:

=DATE(YEAR(B3),(-12*5+MONTH(B3)),DAY(B3))

Subtract Years with DATE

Add Years – First Day of New Year

To add years to a date and return the first day of the calculated year, you can also use the DATE Function:

=DATE(YEAR(B3),(12*3+1),1)

Add year First Day

Add / Subtract Years in Google Sheets

The above examples work exactly the same in Google Sheets as in Excel:

Add Years to Date Google sheet

Hi reader, here it is again; Excel shorty logging in. Do you know how to add years to a date in Excel? No? Keep reading. We are back with a quick lesson on 3 quick methods to add years to dates. The three methods we will use to add years are: easy, peasy, and lemon squeezy.

In Excel terms, We mean that the 3 methods are usage of the EDATE function, the YEAR and DATE functions, and a simple custom formula.

For calculations and data analysis, you may need to add years to a date to arrive at a later or future date or deduct years to arrive at an earlier date. We can show you how to do that with the help of our assistant.

How To Add Months To a Date In Excel

Example

Our humble assistant today is the represented example case. We have a selection of longstanding successful brands in column B and, let’s say, would like to analyze their revenue after 10 years of company founding. For that, first, we need to add 10 years to each of their founding dates in column C:

add-years-to-a-date_01

We see you’re accusing us of incomplete homework but that’s what we’re here to remedy today. We will show you how to fill column D by adding 10 years to each of the founding dates using various formulas. Before we rush to the hows, jot down a few notes:

Notes:

If you start right away, using any formula to fill column D, for the first instance, you will get «31503». Just so you don’t think your meticulously typed formula hasn’t worked, we advise changing the format of the column beforehand because the default format of the cells is the General format and dates require a date format if you don’t want the result as a serial number. What would be even better is if you select both columns C and D and set the same format for both so that the dates in both columns are far more easily comparable. To change the format, you can use the Number Format bar in the Home tab or select one of many date format options from the Format Cells dialog box, accessed by pressing the Ctrl + 1 keys.

Question: Why would we get «31503» in General format instead of a date?

Answer: Excel stores dates as serial numbers (1 being January 1, 1900), and dates would appear so, resultant of formulas, unless the format of the cells is changed to a date format.

Similar to adding, years can be subtracted from a date by a simple minus sign tweak in the formulas.

In our demonstrations below, we have added a flat value of 10 in each formula since we want to add 10 years to every date. If you have a column with different numbers of years to add to the dates, you’ll need to replace the number 10 in the formulas with the reference of the cell with the number of years. We’ll show you a small example below.

Let’s get adding!

Using EDATE Function

 Let’s check out our first method which is using the EDATE function for adding years to a date in Excel. The EDATE function adds or deducts the supplied number of months from a date and returns it as a serial number.

Whatever you will do with a serial number when you want a date? Well, that serial number is the date, as we have just explained above. With some numerical confusion cleared, we can move onto the formula that involves the EDATE function to add years to a date. Here it is:

=EDATE(C3,(10*12))

With the dates listed in column C, the EDATE function takes C3 as its working date. The next argument is the number of months that will be added to the date. Here we have entered 10*12 to add years instead of months. This adds 10 years to April 1, 1976 and returns April 1, 1986.

Make sure you have the format of the target column changed into a date format as per your preference. Now let’s apply the formula to the rest of the dates:

Using EDATE Function

Note: Without multiplying the number with 12 in the formula, it will add months to the date.

We promised you a small example of adding a different number of years to the dates. Here it is; see the example below and the formula just ahead:

=EDATE(C3,(D3*12))

The only difference from the previous formula is that the number 10 has been swapped with the reference of the cell containing the number of years to be added i.e. D3. In this way, the number of years in column D will be added to the dates in column C:

Using EDATE Function

Using YEAR & DATE Functions

The YEAR function can be nested in the DATE function to add years to a date. The YEAR function returns the year of a given date between 1900 and 9999. The DATE function takes an argument each for the year, month and day and returns the collated date as the relevant serial number.

The YEAR function is not the only function that will be used with the DATE function to coin this formula. The MONTH and DAY functions will be used like the YEAR function to return a complete date. We’ll show you how it’s done using the following formula that enlists the YEAR and DATE function to add years to a date:

=DATE(YEAR(C3)+10,MONTH(C3),DAY(C3))

The YEAR, MONTH, and DAY functions take the year, month, and day respectively from the date in C3, as required by the DATE function to return a date. The only difference is that the number 10 has been added to the YEAR function to add 10 years to the date in C3. The addition successfully adds the mentioned years to all the dates in our example:

Using YEAR & DATE Functions

Note: Similarly, numbers can be added to the MONTH and DAY arguments of this formula to add the supplied number of months or days to the date.

Custom Formula

If you want to strip the formula down, excluding any functions, it is possible to add years to a date in Excel using simple arithmetic. See the formula below and then let’s show you the small problem with it:

=C3+(10*365)

A year of 365 days has been multiplied by 10 since we want to add 10 years, and added to the date in C3. Have you figured out the loophole here? See the results of this formula below for our example case:

Custom Formula

The days in the new dates differ from the original dates. Why? The years are added in the formula assuming each year is a 365-day year. That is obviously impractical as it does not account for leap years. This method is will, however, be better applicable for adding a fixed number of days to a date.

That was our little lesson on how to add years to a date in Excel using 3 easy formulas. You see how effortless and quick that was? We have more handpicked, ripe, and ready, simple techniques for your Excel life but we’ll need a teensy bit of time to prep it for you. Excel shorty logging out!

How to subtract or add years to date in Excel

  1. To add years to a date in Excel: =DATE(YEAR(A2) + 5, MONTH(A2), DAY(A2)) The formula adds 5 years to the date in cell A2.
  2. To subtract years from a date in Excel: =DATE(YEAR(A2) – 5, MONTH(A2), DAY(A2)) The formula subtracts 5 years from the date in cell A2.

Contents

  • 1 How do you increment a year by one in Excel?
  • 2 How do you add a month and year in Excel?
  • 3 How do I use the Datedif function in Excel?
  • 4 How do I add 1.5 months to a date in Excel?
  • 5 How do I combine dates and months in Excel?
  • 6 How do I get the month and year from a date in Excel?
  • 7 How do you extend years in Excel?
  • 8 How do I calculate years from a date in Excel?
  • 9 How do I convert birthdate to age in Excel?
  • 10 How do I calculate age from a specific date in Excel?
  • 11 How do I add 3 years to a date in Excel?
  • 12 How do you calculate 12 months from a date?
  • 13 Which data function is used to add calendar months to date?
  • 14 Why won’t excel group my dates?
  • 15 How do you group dates into months in Excel?
  • 16 How do I increase the date and time in Excel?
  • 17 How do I auto populate a date?
  • 18 How do I calculate age in mm/dd/yyyy in Excel?

How do you increment a year by one in Excel?

Formula Method
The most obvious way to increment a number in Excel is to add a value to it. Start with any value in cell A1, and enter “=A1+1” in cell A2 to increment the starting value by one. Copy the formula in A2 down the rest of the column to continuously increment the preceding number.

How do you add a month and year in Excel?

How to Make Excel Add Months to Date

  1. =EDATE(start date, number of months)
  2. Step 1: Ensure the starting date is properly formatted – go to Format Cells (press Ctrl + 1) and make sure the number is set to Date.
  3. Step 2: Use the =EDATE(C3,C5) formula to add the number of specified months to the start date.

How do I use the Datedif function in Excel?

The DATEDIF function has three arguments.

  1. Fill in “d” for the third argument to get the number of days between two dates.
  2. Fill in “m” for the third argument to get the number of months between two dates.
  3. Fill in “y” for the third argument to get the number of years between two dates.

How do I add 1.5 months to a date in Excel?

To add year, month or hour to date or time is usual in our Excel daily work. Have you ever tried to add half a year, month, or hour to date or time? Here I introduce the tricks to handle with this job.
Add half year/month/hour to date or time with formulas.

Operation Formulas
Add half month =DATE(YEAR(A1),MONTH(A1)+INT(0.5),DAY(A1)+MOD(0.5,1)*30)
Add half hour =A1+1/48

How do I combine dates and months in Excel?

Grouping by Months in a Pivot Table

  1. Select any cell in the Date column in the Pivot Table.
  2. Go to Pivot Table Tools –> Analyze –> Group –> Group Selection.
  3. In the Grouping dialogue box, select Months as well as Years. You can select more than one option by simply clicking on it.
  4. Click OK.

How do I get the month and year from a date in Excel?

Extract/get the year, month and day from date list in Excel

  1. Copy and paste formula =YEAR(A2) into the Formula Bar, then press Enter key.
  2. Select a blank cell, copy and paste formula =MONTH(A2) into the Formula Bar and press the Enter key.
  3. Copy and paste formula =DAY(A2) into a blank cell D2 and press Enter key.

How do you extend years in Excel?

Use the Fill Handle
Select the cell that contains the first date. Drag the fill handle across the adjacent cells that you want to fill with sequential dates. at the lower-right corner of the cell, hold down, and drag to fill the rest of the series.

How do I calculate years from a date in Excel?

In a new cell, type in =DATEDIF(A1,B1,”Y”). The “Y” signifies that you’d like the information reported in years. This will give you the number of years between the two dates.

How do I convert birthdate to age in Excel?

Simply by subtracting the birth date from the current date. This conventional age formula can also be used in Excel. The first part of the formula (TODAY()-B2) returns the difference between the current date and date of birth is days, and then you divide that number by 365 to get the numbers of years.

How do I calculate age from a specific date in Excel?

The simplest and most accurate formula to calculate age in Excel is =DATEDIF(birth_date,as_of_date,”y”). This returns the number of years rounded down.

How do I add 3 years to a date in Excel?

How to subtract or add years to date in Excel

  1. To add years to a date in Excel: =DATE(YEAR(A2) + 5, MONTH(A2), DAY(A2)) The formula adds 5 years to the date in cell A2.
  2. To subtract years from a date in Excel: =DATE(YEAR(A2) – 5, MONTH(A2), DAY(A2)) The formula subtracts 5 years from the date in cell A2.

How do you calculate 12 months from a date?

To get around this, bump the date by one in the end. For example, June 1, 2000 to June 1, 2001 is less than twelve months. However, June 1, 2000 to June 2, 2001 is 12 months.

Which data function is used to add calendar months to date?

You can use the EDATE function to quickly add or subtract months from a date. The EDATE function requires two arguments: the start date and the number of months that you want to add or subtract.

Why won’t excel group my dates?

The simple rule for the enabling the Group Field feature for dates is: All cells in the date field (column) of the source data must contain dates (or blanks). If there are any cells in the date field of the source data that contain text or errors, then the group feature will NOT work.

How do you group dates into months in Excel?

Right-Click on any cell within the Dates column and select Group from the fly-out list. Then select Month in the dialog box.

How do I increase the date and time in Excel?

How to quickly add hours/minutes/second to date and time in Excel?

  1. Select the cell next to the first cell of the datetime list, and then type this formula =A2+1/24 into it, press Enter key and drag the auto fill handle over the cell needed this formula.
  2. Then right click to select Format Cells from the context menu.

How do I auto populate a date?

How to auto populate dates in Excel

  1. Enter your initial date in the first cell.
  2. Click on the cell with the first date to select it, and then drag the fill handle across or down the cells where you want Excel to add dates.

How do I calculate age in mm/dd/yyyy in Excel?

Type a birthdate into a cell in the format MM/DD/YYYY (if in the United States) or in the format DD/MM/YYYY if your country uses that format. Type =DATEDIF(XX, TODAY(), “Y”) then press Enter on your keyboard.

Home / Excel Formulas / Add Years to Date (Excel Formula)

Let’s say you have a date, and in that, you want to add a year to the get a same date for the next year. In this tutorial, we will look at some examples to create a formula for this.

Here we are using the date 1-Jan-2021 to make it more understandable to you, and you need to add three years to this date, so the date would be 1-Jan-2024. For this, we will use the EDATE function.

add-date-in-excel
  1. First, you need to EDATE function in cell B1.
  2. After that, in the first argument, refer to cell A1.
  3. Next, 12 for specifying 12 months.
  4. Now, multiply 12 by 3 to specify 3 years.
  5. In the end, enter the closing parentheses and hit enter.
edate-function
=EDATE(A1,12*3)

Add 5 Years in a Date

Now in the same way, if you want to add 5 years to the date the formula would be something like this.

add-5-years-in-date
=EDATE(A1,12*5)

Subtract 10 Years from a Date

And if you want to subtract a year, let’s say ten years, you can use a formula just like below.

subtract-10-years-from-date

Other Method to Add and Subtract Years from a Date

You can also use a combination of (Date, Year, Month, and Day) functions to add or subtract years from a date.

add-and-subtract-years-from-date

In this formula:

  1. The year function gets the year from the date.
  2. The month function takes a month from the date and then adds five years (60 months) to it.
  3. The day function takes a day from the date.
  4. And the date function, in the end, creates a new date using input from all the functions.
=DATE(YEAR(A1),(MONTH(A1)+(12*5)),DAY(A1))

You can also use the same formula to subtract the years from a date.

formula-to-add-and-remove-years-from-date
=DATE(YEAR(A1),(MONTH(A1)+(-12*5)),DAY(A1))

Понравилась статья? Поделить с друзьями:
  • Adding workbook excel vba
  • Adding words to word dictionary
  • Adding word art to paint
  • Adding wise to a word
  • Adding vba to word