Return the last day of the month a given number of months before or after a date.
This function works the same in Google Sheets as it does in Excel — same syntax and arguments.
EOMONTH(start_date, months)EOMONTH finds month-end dates — essential for billing cycles, financial periods, and due dates. Pass 0 for the current month's end, positive numbers for future months, negative for past ones.
=EOMONTH(A2, 0)Result: 2026-06-30
Returns the end of A2's month.
=EOMONTH(A2, 1)+1Result: 2026-07-01
Gets the first day of next month.
Use =EOMONTH(date, -1)+1 — the day after the previous month's end.