Date formula

EOMONTH in Excel and Google Sheets

Get the last day of a month, a number of months before or after a date.

Syntax

=EOMONTH(start_date, months)
start_date
Any date.
months
0 for this month, 1 for next, -1 for last.

Example

EOMONTH example
RowAB
1Invoice dateDue (end of next month)
22026-10-17

B2 =EOMONTH(A2,1)

Result: 2026-11-30

Returns the last day of the following month.

Ready-to-copy formulas

  • First day of this month

    =EOMONTH(TODAY(),-1)+1

Tips

  • Format the cell as a date to see the result as a date.

Need the whole spreadsheet?

Start from a free template with every formula already in place. Opening a template uses no credits.