Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

EDATE and EOMONTH in Excel: Add Months and Find Month End Dates

EDATE and EOMONTH functions in Excel
Illustration: EDATE and EOMONTH in Excel

The EDATE and EOMONTH functions in Excel move a date forward or back by whole months. =EDATE(A2, 3) returns the same day three months later, and =EOMONTH(A2, 0) returns the last day of the month in A2. They are the safe way to build due dates, subscription renewals and month-end reports, because they handle months of different length for you. The sample data is made up.

EDATE syntax

=EDATE(start_date, months)

  • start_date is the date to move from.
  • months is how many months to add. Use a negative number to go back.

EDATE returns a serial number, so format the cell as a date. If it shows a number like 46000, press Ctrl+1 and choose Date.

EDATE adds months to a date in Excel
Made-up dates (illustration).

Add months to a date

If A2 holds 15 Jan 2027, then =EDATE(A2, 1) returns 15 Feb 2027 and =EDATE(A2, 12) returns 15 Jan 2028. To go back six months, use =EDATE(A2, -6).

What happens at month end

If the target month is shorter, EDATE returns the last day of that month. For 31 Jan 2027, =EDATE(A2, 1) gives 28 Feb 2027. That is the main reason to use it instead of adding 30 days, which drifts.

EDATE at month end returns the last day of a shorter month
31 Jan plus 1 month (illustration).

EOMONTH syntax

=EOMONTH(start_date, months)

EOMONTH returns the last day of the month that is the given number of months from the start date. With months set to 0 you get the end of the same month:

=EOMONTH(A2, 0)

Use 1 for the end of next month and -1 for the end of last month.

EOMONTH returns the last day of the month in Excel
Months 0, 1 and -1 (illustration).

Find the first day of the month

There is no function for it, but you can add 1 to the end of the previous month:

=EOMONTH(A2, -1) + 1

This returns the first day of the month in A2. It is useful for grouping by month. See also how to group dates in an Excel pivot table.

First day of the month in Excel with EOMONTH plus 1
End of last month plus 1 (illustration).

Subscription renewal date

With a start date in B2 and the plan length in months in C2, the renewal date is:

=EDATE(B2, C2)

To show days left, subtract today's date: =EDATE(B2, C2) - TODAY(). The TODAY and NOW guide explains that function.

Sum values for a month

EOMONTH works well inside SUMIFS to add values for one month. With dates in A and amounts in B, and a date from the month in F1:

=SUMIFS(B:B, A:A, ">=" & (EOMONTH(F1, -1) + 1), A:A, "<=" & EOMONTH(F1, 0))

The same pattern with fixed dates is shown in SUMIFS between two dates.

Days in a month

To count the days in the month of A2, take the day number of the month end: =DAY(EOMONTH(A2, 0)). This is a clean way to handle leap years, because February returns 29 when it should.

Fix common errors

  • #VALUE! The start date is text, not a real date. Convert it first.
  • #NUM! The result is outside Excel's date range.
  • Result shows a number. Format the cell as a date.
  • Decimal months. Excel cuts the months argument to a whole number, so 1.9 is treated as 1.

Questions and answers

Do EDATE and EOMONTH work in Google Sheets?

Yes. Both functions exist in Google Sheets with the same arguments.

How do I add years?

Multiply by 12: =EDATE(A2, 12*2) adds two years.

What is the difference between EDATE and adding 30?

EDATE keeps the day of the month where it can. Adding 30 days moves by a fixed count, so the date drifts as months differ.

Can I use them with working days?

Not directly. Use WORKDAY on the result if the date must be a working day.

العربية