Last day of the month
Find the month-end date for any date, useful for billing and reports.
The formula
Excel and Google Sheets
=EOMONTH(A2, 0)How it works
A2Any date in the month.
0This month. Use 1 for next month's end or -1 for last month's end.
Example
| A: Date | B: Result |
|---|---|
| 2026-02-10 | 2026-02-28 |
| 2026-07-01 | 2026-07-31 |
Tips
- First day of the month: =EOMONTH(A2, -1)+1.