WorkbookLogic
FunctionDate and timeintermediateEOMONTHDATEIF

EOMONTH Function

By WorkbookLogic

The Excel EOMONTH function returns the final calendar day of a month a specified number of months before or after a start date.

ExcelLast reviewed Sep 11, 2026
eomonth-function-v1.0.0.xlsx
Excel EOMONTH Function
EOMONTH returns the final calendar day before or after a start month.
Source cases, editableEOMONTH examples
ScenarioStart dateMonthsData noteDestinationExampleFormula syntaxResult
Current monthAug 15, 20260Zero offsetAug 2026Current month=EOMONTH(B12,C12)Aug 31, 2026
Next monthJan 15, 20241Leap-year FebruaryFeb 2024Next month=EOMONTH(B13,C13)Feb 29, 2024
Prior monthAug 15, 2026-1Negative offsetJul 2026Prior month=EOMONTH(B14,C14)Jul 31, 2026
Year crossingNov 30, 20262Moves into 2027Jan 2027Year crossing=EOMONTH(B15,C15)Jan 31, 2027
February endFeb 1, 20250Non-leap FebruaryFeb 2025February end=EOMONTH(B16,C16)Feb 28, 2025
How EOMONTH behaves
An offset of zero returns the end of the start date's own month.
Positive offsets move forward and negative offsets move backward by whole months.
The result is a true date and automatically respects month length and leap years.
Reliability checks
Zero offset from August returns 31-Aug-2026OK
January plus one month returns leap day in 2024OK

Overview

The Excel EOMONTH function moves from a start date by a whole number of months and returns the last calendar day of the destination month.

Quick reference

Syntax: =EOMONTH(start_date, months)

Returns: An Excel date serial for the final day of the destination month. (date)

Arguments:

  • start_date (required) — The true Excel date used as the starting month.
  • months (required) — The whole-month offset: zero for the current month, positive for future months, and negative for prior months.

Both arguments are required. Use zero for the starting month, a positive offset for a future month, or a negative offset for a prior month.

Common uses

  • Create monthly reporting cutoffs.
  • Calculate due dates and expiration dates that must land on month-end.
  • Build month boundaries for SUMIFS and COUNTIFS.
  • Generate quarter-end or year-end schedules.

Calculations

EOMONTH shifts by the number of months requested and then moves to that month's final calendar day. The day component of start_date does not affect the final day selected.

The result is a numeric date serial, so apply a date number format if Excel displays a number. Leap years and varying month lengths are handled automatically. Decimal month offsets are truncated to whole months.

Use EDATE instead when the goal is to preserve the same day-of-month rather than force month-end.

Function behavior

Situation

Behavior

Offset 0

Returns the end of the start date's month.

Positive offset

Moves to a future month-end.

Negative offset

Moves to a prior month-end.

Leap-year February

Returns February 29 automatically.

Decimal months

Fractional portion is truncated.

Time attached to start date

Time fraction does not carry into the month-end result.

Invalid date

Returns an error.

Unformatted result

May display as a serial number.

Common errors

Using EOMONTH for a same-day shift

What happens:
The result always lands on the final day of the destination month.

Better approach:
Use EDATE when the same day-of-month should be preserved.

Supplying a text date

What happens:
Locale ambiguity or invalid text can produce an error.

Better approach:
Reference a true Excel date or construct one with DATE.

Treating the result as text

What happens:
Date arithmetic and comparisons become harder or unreliable.

Better approach:
Keep the serial numeric and apply date formatting to the cell.

Example

Example 1 — Current Month-End

=EOMONTH(B12,C12)

With 15-Aug-2026 and offset 0, the workbook returns 31-Aug-2026.

Example 2 — Leap-Year February

=EOMONTH(B13,C13)

A January 2024 start with offset 1 returns 29-Feb-2024.

Example 3 — Previous Month-End

=EOMONTH(A1,-1)

A negative offset returns the final day of the preceding month.

Example workbook

The workbook contains an EOMONTH Example sheet with five editable start dates and month offsets. Live formulas demonstrate current, future, prior, leap-year, and year-boundary month ends, while two checks confirm August 2026 and February 2024. A Notes sheet explains offsets and serial dates.

Key takeaway

Use EOMONTH when the result must land on a calendar month-end; use zero, positive, or negative offsets to select the destination month.