Google Sheets
EOMONTH function in Google Sheets
Returns a date representing the last day of a month which falls a specified number of months before or after another date.
=EOMONTH(start_date, months)EOMONTH syntax and parameters
Two arguments, two required.
- start_datenumberRequired
The date from which to calculate the result.
- monthsnumberRequired
The number of months before (negative) or after (positive) start_date to consider. The last calendar day of the calculated month is returned.
EOMONTH examples
Formulas you'll actually reuse.
The last day of the invoice's month — month-end close:
=EOMONTH(B2, 0)Result
2026-08-31The first day of the same month — end of last month, plus one:
=EOMONTH(B2, -1) + 1Result
2026-08-01
EOMONTH in Excel
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…
Related functions
More ways Google Sheets gets this done.
- DATEConverts a provided year, month, and day into a date.DateExcel
- DATEDIFCalculates the number of days, months, or years between two dates.DateExcel
- DATEVALUEConverts a provided date string in a known format to a date value.DateExcel
- DAYReturns the day of the month that a specific date falls on, in numeric format.DateExcel
- DAYSReturns the number of days between two dates.DateExcel
- DAYS360Returns the difference between two days based on the 360 day year used in some financial interest calculations.DateExcel