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)[like_this] are optional; all other arguments are required.Formula arguments.
Every parameter accepted by the EOMONTH function is detailed below.
The starting date.
Example value:A2Number of months before (negative) or after (positive). Use 0 for current month.
Example value:0Simple example.
Step-by-Step ScenarioBilling Cycle - End of Month Due Date
Find the final day of the billing month for invoice processing.
| Invoice Date | Month End Due Date |
|---|---|
| 2025-05-14 | — |
| 2025-02-10 | — |
=EOMONTH(A2, 0)Evaluates EOMONTH over the sample table cells, placing the verified output in cell B2.
Formula generator.
Full Generator WizardCustomize the argument fields below to generate a tailored EOMONTH formula ready to paste directly into your worksheet.
=EOMONTH()Expected result behavior.
Returns "2025-05-31" based on sample evaluation criteria and active cell references.
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.
Platform & version compatibility.
Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.
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.
100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.
Frequently asked questions.
Technical Q&ACan 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.