ExcelFormulas logoExcelFormulas.
Ask AI
Date & TimeVerified QA Tested

EOMONTH.

Returns the last day of the month before or after a specified number of months.

Category: Date & Time
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

EOMONTH calculates the final calendar day of the month that is a specified number of months before or after a start date.

Formula syntax.

Standard Excel Notation
=EOMONTH(start_date, months)
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the EOMONTH function is detailed below.

start_dateRequired

The starting date.

Example value: A2
monthsRequired

Number of months before (negative) or after (positive). Use 0 for current month.

Example value: 0

Simple example.

Step-by-Step Scenario

Billing Cycle - End of Month Due Date

Find the final day of the billing month for invoice processing.

Invoice DateMonth End Due Date
2025-05-14—
2025-02-10—
Applied Formula
=EOMONTH(A2, 0)
Expected Result:2025-05-31

Evaluates EOMONTH over the sample table cells, placing the verified output in cell B2.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored EOMONTH formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns "2025-05-31" based on sample evaluation criteria and active cell references.

Sample Output:2025-05-31
Output Type:Text String

Best Practices

  • Set months to 0 to quickly find the last day of the current month: =EOMONTH(A2, 0).

Common Mistakes

  • Ensure the output cell is formatted as a Date, otherwise it will display as a raw serial number like 45789.
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Google Sheets Compatibility Notes

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Frequently asked questions.

Technical Q&A
Can I use EOMONTH across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =EOMONTH(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in EOMONTH?↓

Ensure the output cell is formatted as a Date, otherwise it will display as a raw serial number like 45789.

Does EOMONTH work identically in Google Sheets?↓

Yes, EOMONTH is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.