Excel & Google Sheets Function
EOMONTH function in Excel (with interactive examples)
EOMONTH returns the last day of the month N months before or after a start date — indispensable for monthly financial models and billing periods.
Syntax
=EOMONTH(start_date, months)Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (EOMONTH reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| start_date | Required | Starting date cell. |
| months | Required | 0 for current month end, 1 for next month end, -1 for prior month end. |
Common errors & fixes
Shows a 5-digit number: Apply Date formatting to the result cell.
Excel vs Google Sheets
Identical in Google Sheets.
Practise EOMONTH in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.