## Excel Formula: Add months to date

in this tutorial, it introduces formulas to add months to a given date in Excel, and explains how the formulas work.

### Formula 1

Generic formula:

 DATE(YEAR(date),MONTH(date))+months,DAY(date)))

Arguments

 Date: the date you want to add months to. Months: a whole number which represents the number of months you want to add. It adds months to dates while the argument months is a positive value, and it subtracts months from the given date while the argument months is negative.

Return value

Return a value in date format.

How this formula work

Take an instance, to add months to the date in cell B3, and the number of months is placed in cell C3, please use the formula as below:

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

Press Enter key to get the result.

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.

### Formula 2

Generic formula:

 EDATE(Sart_date,months)

Arguments

 Start_date: the date you want to add months to. Months: a whole number which represents the number of months you want to add. It adds months to dates while the argument months is a positive value, and it subtracts months from the given date while the argument months is negative.

Return value

Return a seriealn number value.

How this formula work

For example, to add months to the date in cell B8, and the number of months is placed in cell C8, please use the formula as below:

 =EDATE(B8,C8)

Or directly use the number in the formula

 =EDATE(B8,20)

Press Enter key to get the date in serial number format.

Explanation

There are 24 hours a day, and one hour is 1/24 day.

Remark

If you want to subtract the hours from time, please use below formula

 MOD(Start_time-hours/24,1)

For example, there is a time in cell B18, the number of hours you want to subtract is displayed in cell C18, please use below formula:

=MOD(B18-C18/24,1)

Or

=MOD(B18-12/24,1)

Press Enter key then the result is shown.

Then right click at the serial number, choose Format Cells from the context menu, then in the pipping Format Cells dialog, choose Date in Category list under Number tab, and select one type of date formats you want the result displayed.

Click OK, then the serial number is displayed in date format.

Note:

Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is the serial number 1. In this case, serial number 44219 means the day is 44219 days after January 1, 1900, and it is 1/23/2021.

Explanation

### Sample File

#### Relative Formulas

• 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.
This tutorial provides formulas and explains how to add minutes to time in Excel.
• Get Work Hours Between Two Dates In Excel
The NETWORKDAYS function in Excel can help you to get the net workdays between two dates, and then multiply the number of working hours per workday to get the total work hours.