Skip to content
Excel

EOMONTH function in Excel

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

=EOMONTH(start_date, months)

EOMONTH syntax and parameters

Two arguments, two required.

  • start_dateanyRequired
  • monthsnumberRequired

EOMONTH examples

Formulas you'll actually reuse.

  1. The last day of the invoice's month — month-end close:

    =EOMONTH(B2, 0)

    Result2026-08-31

  2. The first day of the same month — end of last month, plus one:

    =EOMONTH(B2, -1) + 1

    Result2026-08-01

EOMONTH in Google Sheets

Same name — your formula ports as-is.

Try EOMONTH in the playground

Edit the example — nothing to install.

Preloaded with the EOMONTH formula from Example 1 — change anything and watch it respond.

Loading the editor…