Tabellab
Excel formulas

EDATE vs EOMONTH: adding months and finding month ends in Excel

=EDATE(start_date, months) moves a date by whole months and keeps the day of the month: 15 January 2026 plus one month is 15 February 2026. =EOMONTH(start_date, months) moves by the same number of months but always returns the last day of the month you land in: 15 January 2026 plus one month gives 28 February 2026. Both accept negative months to go back, and both cap impossible days: EDATE turns 31 January plus one month into 28 February. Use EDATE for anniversaries, renewals and "one month later"; use EOMONTH for month-end reporting, period keys, the first day of a month and "end of month" payment terms. The example below runs six dates through both functions and then builds the common due-date formulas for one invoice.

Updated 30 Oct 2026 6 min read By Tabellab team

Syntax: the same two arguments

Both functions take a start date and a number of months, and both arguments are required:

=EDATE(start_date, months) · =EOMONTH(start_date, months)

The start date can be a cell with a date, a DATE() formula or TODAY(). Months is a whole number: positive moves forward, negative moves back and 0 stays in the same month. Decimals are truncated, so 1.9 counts as 1. The result is a date serial number, the way Excel stores every date, so format the cell as a date or wrap the formula in TEXT(…,"d mmm yyyy") as the example does. A result shown as 46,446 is a correct date in General format, not an error.

The only difference is the day. EDATE keeps the day of the start date when that day exists in the target month. EOMONTH ignores the day completely: 1 May and 31 May both give 31 May with 0 months.

Month ends and leap years, step by step

Read the first block of the example row by row. 15 Jan + 1 month: EDATE keeps the 15th and returns 15 Feb 2026, EOMONTH returns 28 Feb 2026. 31 Jan + 1 month: February has no 31st, so EDATE returns the last valid day, 28 Feb 2026, and the two functions agree. 31 Aug 2026 + 6 months: both land on 28 Feb 2027.

28 Feb 2027 + 12 months is where they part: EDATE keeps the 28th and returns 28 Feb 2028, while EOMONTH returns 29 Feb 2028, because 2028 is a leap year and its February is one day longer. If a contract says "on the last day of each month", only EOMONTH gets that right. 30 Oct 2026 − 3 months goes back to 30 Jul 2026 with EDATE and 31 Jul 2026 with EOMONTH.

A trap with EDATE is chaining it month by month. If B2 is 31 Jan and B3 is =EDATE(B2,1), B3 is 28 Feb, and =EDATE(B3,1) then gives 28 March, not 31 March: the day has been lost. For a schedule, always offset from the original start date with a growing month count, =EDATE($B$2,ROW()-2) or a column of 1, 2, 3, or use EOMONTH when you want month ends.

Useful EOMONTH patterns: first of month, days in month, quarter end

First day of a month: take the end of the previous month and add one day, =EOMONTH(A2,B2-1)+1. With 0 months it gives the first of the current month, the usual start of a month-to-date range in SUMIFS.

Days in a month: =DAY(EOMONTH(A2,0)) returns 28, 29, 30 or 31, which is handy for daily rates and proration. The example shows 29 for February 2028.

End of the calendar quarter: =EOMONTH(A2,MOD(3-MONTH(A2),3)) adds 0, 1 or 2 months so that the result is 31 March, 30 June, 30 September or 31 December. For the invoice dated 14 January 2027 it returns 31 March 2027.

Month keys: converting every transaction date to its month end with =EOMONTH(date,0) gives one value per month that sorts correctly and works as a criterion in SUMIFS, COUNTIFS and lookups, which a text label like "Jan-27" does not do reliably.

Worked example: six dates through EDATE and EOMONTH, then due dates for one invoice

Start dates, months and the invoice date are inputs (yellow). Results are shown with TEXT so the dates read the same everywhere; without TEXT, format the cells as dates.

Worked example: six dates through EDATE and EOMONTH, then due dates for one invoice
ABCDEF
1Start dateMonthsEDATE: same dayEOMONTH: month endFirst of that monthDays in that month
215 Jan 2026115 Feb 202628 Feb 20261 Feb 202628
331 Jan 2026128 Feb 202628 Feb 20261 Feb 202628
431 Aug 2026628 Feb 202728 Feb 20271 Feb 202728
528 Feb 20271228 Feb 202829 Feb 20281 Feb 202829
630 Oct 2026-330 Jul 202631 Jul 20261 Jul 202631
714 May 2026014 May 202631 May 20261 May 202631
8
9Due dates and periods for one invoiceResult
10Invoice date14 Jan 2027
11Net 30: invoice date + 30 days13 Feb 2027
1230 days end of month: EOMONTH(date, 0) + 302 Mar 2027
13End of the following month: EOMONTH(date, 1)28 Feb 2027
14Reminder one month after the invoice: EDATE(date, 1)14 Feb 2027
15End of the calendar quarter: EOMONTH(date, MOD(3 − MONTH(date), 3))31 Mar 2027
16Last day of a 12-month contract starting on the invoice date13 Jan 2028
17Days between net 30 and 30 days end of month17
Key formulas
  • C3=TEXT(EDATE(A3,B3),"d mmm yyyy")EDATE from 31 January
  • D5=TEXT(EOMONTH(A5,B5),"d mmm yyyy")EOMONTH into a leap-year February
  • E2=TEXT(EOMONTH(A2,B2-1)+1,"d mmm yyyy")First day of the target month
  • F5=DAY(EOMONTH(A5,B5))Days in the month
  • F12=TEXT(EOMONTH(F10,0)+30,"d mmm yyyy")30 days end of month
  • F15=TEXT(EOMONTH(F10,MOD(3-MONTH(F10),3)),"d mmm yyyy")End of the calendar quarter
  • F16=TEXT(EDATE(F10,12)-1,"d mmm yyyy")Last day of a 12-month term

Fictional dates. Payment terms differ by contract and country; the formulas show the arithmetic, not which terms apply to you.

Due dates: net 30, 30 days end of month, end of next month

Payment terms are where the two functions are easiest to confuse. For an invoice dated 14 January 2027:

Net 30 means 30 calendar days from the invoice date, plain addition: =F10+30, due on 13 Feb 2027. No month function is needed. 30 days end of month starts counting at the end of the invoice month: =EOMONTH(F10,0)+30, due on 2 Mar 2027, 17 days later than net 30. End of the following month is =EOMONTH(F10,1), 28 Feb 2027. A reminder exactly one month after the invoice is =EDATE(F10,1), 14 Feb 2027.

For contracts and subscriptions, the last day of a 12-month term that starts on 14 January 2027 is =EDATE(F10,12)-1, 13 January 2028: the next term starts on the anniversary, so the current one ends the day before. If due dates must skip weekends and holidays, pass the result to WORKDAY, as described in NETWORKDAYS and WORKDAY.

Which one to use

Use EDATE when the day of the month matters: birthdays and anniversaries, renewals, warranty ends, "three months after delivery" and monthly schedules that should fall on the same day. Use EOMONTH when the month matters more than the day: month-end closing and reporting dates, accruals, period keys for summaries, quarter ends and "end of month" payment terms. Use plain addition for a fixed number of days. Both functions are available in every current version of Excel, Google Sheets and LibreOffice.

Common mistakes

  • Adding 30 instead of a month. =A2+30 is not "one month later": from 31 January it lands on 2 March. Use EDATE(A2,1) for calendar months.
  • Chaining EDATE from the previous row. Once a date has been capped to the 28th, every later month stays on the 28th. Offset from the original start date instead.
  • Expecting EDATE to give the month end. EDATE(28 Feb 2027, 12) is 28 Feb 2028, not 29 Feb. Use EOMONTH when the last day of the month is meant.
  • Reading a serial number as an error. Both functions return numbers such as 46,446. Format the cell as a date or use TEXT.
  • Start dates stored as text. A date Excel has not recognised gives #VALUE!. Convert it with DATEVALUE or re-enter it as a real date.
  • Using EOMONTH(date, 0) + 1 as the first of the month. That is the first day of the next month. The first of the current month is EOMONTH(date, −1) + 1.

Frequently asked questions

What is the difference between EDATE and EOMONTH in Excel?

Both move a date by a number of months. EDATE keeps the day of the month, capped at the last valid day, while EOMONTH always returns the last day of the resulting month.

How do I add months to a date in Excel?

Use =EDATE(A2,n) with the number of months n, for example =EDATE(A2,6) for six months later. Use a negative number to go back.

How do I get the last day of the month in Excel?

Use =EOMONTH(A2,0) for the end of the month of the date in A2, =EOMONTH(A2,1) for the end of the next month and =EOMONTH(A2,-1) for the end of the previous month.

How do I get the first day of the month in Excel?

Use =EOMONTH(A2,-1)+1. It takes the last day of the previous month and adds one day.

Why does EDATE return a number instead of a date?

Excel stores dates as serial numbers and EDATE returns that number. Format the cell as a date, or wrap the formula in TEXT, to see it as a date.

Practise it in a lab

Related guides

Reading is step one. Doing is step two.

Every guide links to a lab where you build the same calculation in an online spreadsheet and get instant feedback.

Open the lab