How-to recipes · Dates and times

How to add months to a date in Excel

Add or subtract months and years from a date with EDATE, handle month-end dates correctly, and see why DATE with MONTH+n can overshoot.

Beginner EDATE EOMONTH DATE YEAR MONTH DAY TODAY

Contract renewals, warranty expiry dates, subscription billing, probation periods, follow-up appointments: many business dates are defined as x months after another date. Adding days is easy, because a date is a number of days, but months have different lengths, so adding 30 days is not the same as adding one month. Excel has a function that does month arithmetic properly, including the tricky end-of-month cases.

The example data

Three start dates in A2:A4 with the number of months to add in B2:B4.

The formula: EDATE

EDATE returns the same day of the month, a given number of months later (or earlier with a negative number):

C3fx=EDATE(A3,B3)
ABC
1StartMonths
22026-01-151
32026-01-3112026-02-28
42026-08-316

Formatted as a date (yyyy-mm-dd). 31 January plus one month is 28 February, the last day of February 2026.

Result: 2026-02-28

EDATE works in every version since Excel 2007. Its result is a date serial number, so format the result cell as a date if you see a number like 46081.

  • =EDATE(A2,1) adds one month: 15 Jan 2026 becomes 15 Feb 2026.
  • =EDATE(A2,-3) goes back three months.
  • =EDATE(A2,12*5) adds five years. There is no separate function for years; multiply by 12.
  • =EDATE(A4,6) turns 31 August 2026 into 28 February 2027, because February 2027 has only 28 days.

Microsoft 365: a whole column at once

EDATE accepts ranges in Microsoft 365, so one formula handles every row:

C2fx=EDATE(A2:A4+0,B2:B4+0)
ABC
1StartMonths
22026-01-1512026-02-15
32026-01-3112026-02-28
42026-08-3162027-02-28

Formatted as dates. Each start date gets its own number of months.

Why not DATE(YEAR, MONTH + n, DAY)?

Before EDATE was common, people wrote =DATE(YEAR(A3),MONTH(A3)+B3,DAY(A3)). DATE is clever: month 13 rolls over into January of the next year, so adding months across a year boundary works. But day overflow rolls over too. For 31 January plus one month it builds 31 February, which Excel turns into 3 March 2026. That is rarely what a contract means.

The DATE version is still useful when you deliberately want overflow, or when you add years, months and days at the same time: =DATE(YEAR(A2)+1,MONTH(A2)+2,DAY(A2)+10) adds one year, two months and ten days in one step.

End of month: EOMONTH

For month-end dates, such as invoices due at the end of the following month, use EOMONTH, which always returns the last day of a month: =EOMONTH(A2,1) returns 28 Feb 2026 for any date in January. =EOMONTH(A2,0)+1 gives the first day of the next month. More examples are in How to get the first and last day of the month in Excel.

Practical examples

TaskFormula
Contract end after 24 months=EDATE(A2,24)
Last day of the contract (the day before)=EDATE(A2,24)-1
Warranty: 2 years from purchase=EDATE(A2,24)
Next review: 6 months from today=EDATE(TODAY(),6)
Months remaining until a date=DATEDIF(TODAY(),A2,"m")
Payment due at the end of next month=EOMONTH(A2,1)

Adding days, weeks and working days

For days and weeks, simple addition is right: =A2+30 adds 30 calendar days and =A2+7*4 adds four weeks. For business days use WORKDAY: =WORKDAY(A2,10) returns the date ten working days later, skipping weekends. Working-day counting is explained in How to count working days between two dates in Excel.

Pitfalls

  • Decimal months are truncated. =EDATE(A2,1.9) adds just one month. Use whole numbers.
  • Text dates give #VALUE!. Convert them first (How to convert text to a date in Excel).
  • Month-end chains drift. Adding one month repeatedly to 31 January gives 28 Feb, then 28 Mar, 28 Apr ... because each step starts from the previous result. Always add to the original date (=EDATE($A$2,n)) or use EOMONTH for month ends.
  • Result shows a number. Format the cell as a date (Ctrl+Shift+# gives a short date).
Tip. Background on date serial numbers is in Dates and times: serial numbers, date math and working days. For a schedule of monthly loan payments, EDATE generates the payment dates: see How to create a loan payment schedule in Excel.
⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

More how-to recipes