End of the current month
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C1: =EOMONTH(A2,0)
Result: 3/31/2024
0 months means the month of the start date.
Last day of the month.
EOMONTH(start_date, months)Example: =EOMONTH(A2,0)
Available in: All versions
EOMONTH returns the last day of the month that is a given number of months before or after a start date: =EOMONTH(start_date, months). Use it for month-end deadlines, billing cycles and counting days in a month.
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C1: =EOMONTH(A2,0)
Result: 3/31/2024
0 months means the month of the start date.
| A | |
|---|---|
| 1 | Date |
| 2 | 3/9/2024 |
Formula: C1: =EOMONTH(A2,1)
Result: 4/30/2024
Positive months move forward; negative move back.
| A | |
|---|---|
| 1 | Date |
| 2 | 2/10/2024 |
Formula: C1: =DAY(EOMONTH(A2,0))
Result: 29
The day number of the last day equals the length of the month. 2024 is a leap year.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =EOMONTH(A3,1)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Start | End | Holiday | Time | Result | |
| 2 | 3/15/2026 | 6/20/2026 | 5/1/2026 | 14:45 | 2/28/2026 | |
| 3 | 1/31/2026 | 2/28/2026 | 5/9/2026 | 09:30 | ||
| 4 | 12/24/2025 | 1/9/2026 |
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page