
📎 This article includes 1 downloadable practice file ↓
EOMONTH returns the last day of the month, a number of months away from a date.
Syntax
=EOMONTH(start_date, months)
| Argument | What it means |
|---|---|
start_date |
A date. |
months |
0 = this month, 1 = next, −1 = last. |
Examples
Example 1
=EOMONTH(A2, 0)
Month-end of the invoice date.
Example 2
=EOMONTH(A2, -1)+1
First day of A2’s month.
Example 3
=DAY(EOMONTH(A2, 0))
Number of days in the month.
Related functions
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
📎 Practice files for this article
- 📗Date scenarios workbookMonth maths, financial-year start, working days with holidays — with PASS/FAIL checks and the 2 most common date mistakes.⬇ XLSX · 8 KB
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.
✨ Ask AI about this article
Stuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong