EOMONTH is a built-in date function in Microsoft Excel that returns the last day of a month, offset from a start date by any number of months. It is a genuine, documented Excel function (short for "End Of MONTH"), not slang or a made-up term. You use it when you need a clean month-end date for billing, due dates, reporting cutoffs or building a month-by-month calendar. The formula takes two arguments: a start date and a month offset, and the simplest version looks like =EOMONTH(A2,0), which gives the final day of the same month that the date in A2 falls in.

Where the Name Comes From and What It Is

EOMONTH follows Excel's older naming style for date functions, where the name compresses a phrase: END OF MONTH becomes EOMONTH, much like TODAY, NOW and NETWORKDAYS pack meaning into a single token. It was introduced with Excel 2007 as part of the Analysis ToolPak being folded into the core program. In some older versions EOMONTH still exists, but it must be enabled through the Analysis ToolPak add-in, which is why you sometimes see #NAME? errors on legacy files.

EOMONTH is a worksheet function, and it also appears as a VBA function using the same name. It is not available in Google Sheets under a different name; Google Sheets uses EOMONTH too, so the same formula usually ports directly. It belongs to the same family as EOMONTH's sibling EDATE, which shifts a date by a number of months while keeping the same day number.

The Syntax in Detail

The function has exactly two required arguments:

  • start_date – the date to base the calculation on. This can be a cell reference, a date typed inside quotes such as "2026-03-15", or the result of another function like TODAY().
  • months – a whole number of months to add before finding the month end. Positive numbers move forward, negative numbers move backward, and zero returns the month end for the start date's own month.

Both arguments are required in modern Excel. A common mistake is writing =EOMONTH(A2), which returns a #VALUE! or a missing-argument error. You must include the second argument, even if it is just 0. The function also accepts a decimal for months, but it truncates the decimal rather than rounding, so 1.9 behaves like 1.

Worked Examples

These examples assume the date 15 March 2026 is in cell A2. Writing each formula in a separate cell gives the following results:

  • =EOMONTH(A2,0) returns 31 March 2026 — end of the same month.
  • =EOMONTH(A2,1) returns 30 April 2026 — end of the following month (April has 30 days).
  • =EOMONTH(A2,-1) returns 28 February 2026 — end of the previous month.
  • =EOMONTH(A2,12) returns 31 March 2027 — one year ahead, same month, end of month.
  • =EOMONTH(TODAY(),0) returns the last day of the current month, refreshed every time the workbook recalculates.

Because the function automatically knows how many days each month has, it handles February in leap years correctly without any special logic. For 2028, =EOMONTH("2028-02-10",0) gives 29 February 2028.

Getting the First Day of the Month or Next Month

EOMONTH is often used as a building block rather than an end in itself. Two common companions:

  • First day of the current month: =EOMONTH(A2,-1)+1. This finds the previous month end and adds a day.
  • First day of next month: =EOMONTH(A2,0)+1.
  • Due date on the 15th of the following month: =EOMONTH(A2,0)+15.
  • Number of days until month end: =EOMONTH(A2,0)-A2.

Excel stores dates as serial numbers, so adding or subtracting days is just arithmetic. The result of EOMONTH is a serial number too, which is why it sometimes appears as 46112 instead of a date. Apply a Date format to the cell (Home > Number Format dropdown, or Cells > Format Cells) to display it readably.

Common Problems and Fixes

Most EOMONTH issues fall into a handful of patterns. Work through these in order:

  1. #VALUE! error. Usually the start date is stored as text, not a real date. Check by selecting the cell; if the value is left-aligned, it is likely text. Fix it with Data > Text to Columns or by retyping the date in a recognised format such as the one matching your regional settings.
  2. #NUM! error. The month offset produces a date before 1 January 1900. Excel cannot handle dates earlier than that, so a large negative offset near the dawn of its date system fails.
  3. #NAME? error. On very old workbooks, EOMONTH may be missing because the Analysis ToolPak was not enabled. Open the Add-ins dialog from File > Options and enable it, or simply save the file in a modern format.
  4. A serial number instead of a date. The formula works, but the cell has General formatting. Set a date format.
  5. A date that does not update. If you typed the date directly into the formula, it is fixed. Use TODAY() or a cell reference to make it dynamic.

One frequent misconception is that EOMONTH rounds to the nearest month end. It does not round the date; it always jumps to the final day of whatever month the offset lands on, regardless of how early or late in the month the start date falls.

Where You Will Actually Use It

The function shows up most in finance and operations work. Examples include:

  • Billing cycles where invoices are dated the end of the month regardless of the service start date.
  • Payroll and accrual schedules that must split costs by calendar month.
  • Monthly reports that label each period with the correct closing date.
  • Project trackers that flag whether a deadline falls before or after month end.
  • Building a month-end calendar: put a first-of-month date in one cell and use =EOMONTH(cell,0)+1 to generate the next first-of-month, then fill down.

If you need the last business day of the month rather than the calendar last day, wrap EOMONTH in WORKDAY or use it as the start point for a formula that checks the weekday and steps back over weekends.

EOMONTH vs EDATE and Other Date Functions

EOMONTH and EDATE are often confused. EDATE shifts a date by a number of months and keeps the same day number where possible, so EDATE of 15 March 2026 by one month gives 15 April 2026. EOMONTH of the same date by one month gives 30 April 2026. If you want a specific day, use EDATE or simply add days; if you want the month boundary, use EOMONTH.

Compared with nesting DATE and DAY functions, EOMONTH is shorter and less error-prone, especially for February. A manual approach like =DATE(YEAR(A2),MONTH(A2)+2,0) works too, because Excel treats day 0 of a month as the final day of the previous month, but that trick is hard to read and easy to break.

Frequently Asked Questions

Is EOMONTH available in all versions of Excel?

It is available in Excel 2007 and later as a built-in function, and in modern Microsoft 365 versions. In older versions it required the Analysis ToolPak add-in. Google Sheets also supports EOMONTH with the same syntax.

Why does EOMONTH return a number like 46112?

Excel stores dates as serial numbers. Apply a date format to the cell, such as Short Date, and the number will display as a normal date. The underlying value is correct.

Can EOMONTH return the last day of the year?

Not directly, but you can combine it with other functions. Using a month offset that lands on December, for example =EOMONTH(DATE(YEAR(A2),1,1),11), gives 31 December of that year.

Does EOMONTH work with negative months?

Yes. A negative second argument moves backward, so =EOMONTH(A2,-3) gives the last day of the month three months before the start date, provided the result stays on or after 1 January 1900.

How do I get the last weekday of the month instead of the last calendar day?

Use =WORKDAY(EOMONTH(A2,0)+1,-1). This starts from the first day of the next month, steps back one working day, and lands on the final business day, skipping weekends and any holidays you supply.