Skip to main content
← All functions

EOMONTH function

Returns the serial number of the last day of the month before or after a specified number of months

Syntax

EOMONTH(start_date, months)

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
start_dateYesA date that represents the starting date."2011-1-1"
monthsYesThe number of months before or after start_date.1

Try EOMONTH

Shift a January date into the preceding year

=EOMONTH(A2,B2)

Moving one calendar month back from January 2026 selects December 2025, whose last date is December 31. Subtracting a fixed number of calendar days would answer a different question.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

EOMONTH · top-level call

=EOMONTH(A2,B2)

1 / 2 · start_date

A date that represents the starting date.

EOMONTH reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.