What it does
EOMONTH returns the last day of the month, a number of months before or after a date.
Syntax or pattern
=EOMONTH(start_date, months)5 practical examples
End of current month
Return the month-end for a date.
=EOMONTH(A2,0)Useful for period grouping.
End of next month
Return the next month-end.
=EOMONTH(A2,1)Change the month offset.
End of previous month
Return previous month-end.
=EOMONTH(A2,-1)Negative offsets go backward.
Monthly report label
Create a month-end label.
=TEXT(EOMONTH(A2,0),"mmm yyyy")Combines date logic with TEXT.
Days until month end
Calculate days remaining in the month.
=EOMONTH(TODAY(),0)-TODAY()Good for countdowns and planning.
Common mistakes to avoid
- Check whether dates are real Excel dates, not text.
- Be careful with weekends, holidays and time portions.
- Explain whether a result counts calendar days or workdays.
Related Excel examples
FAQ
Why does the date formula return a number?
Excel stores dates as serial numbers. Format the cell as a date to display it correctly.
Here are some ideas for you
Optional resources that may help if you are learning formulas, building reports, or working in spreadsheets often.
- Excel formula booksSee ideas
Practice formulas with structured examples you can keep beside your desk.
- Excel shortcut guidesSee ideas
Build speed with keyboard shortcuts for selection, formatting and navigation.
- Numeric keypadsSee ideas
Helpful if you enter many numbers on a laptop or compact keyboard.
- External monitorsSee ideas
Useful for viewing large worksheets, formulas and reference tables side by side.
- Desk notebooksSee ideas
Sketch formula logic, report ideas and table structures before building.
- Laptop standsSee ideas
Make long spreadsheet sessions more comfortable and ergonomic.
Some links in this section may be affiliate links. Choose only what is useful for your own work.