EOMONTH in ONLYOFFICE: Calculate Month-End Dates
Find the last day of the current, previous, or later month for reporting cutoffs, statements and calendar-based due dates.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked
EOMONTH in ONLYOFFICE Spreadsheet Editor
What this function does—and what it does not
EOMONTH selects the final day of the target calendar month. It differs from EDATE, which shifts the starting day by months. As ONLYOFFICE documents a serial result, format its output as a date. Use 0 months for the containing month and negative offsets for earlier months in the independently modelled examples.
Month-end formulas are especially useful when months have 28, 29, 30, or 31 days. Unlike DATE(YEAR(A2),MONTH(A2)+1,1)-1 alternatives, EOMONTH expresses the month-end intention directly. These two formula families should be compared on a blank workbook before adopting in finance processes.
Exact official syntax and arguments
=EOMONTH(start_date, months)
| Argument | Required? | Meaning/type | Omission/default |
|---|---|---|---|
start_date |
Required | Valid date or date-producing expression | No documented default |
months |
Required | Numeric offset selecting a target month; negative for earlier months | No documented default |
The ONLYOFFICE function page is an unversioned English web reference. Required/optional designations above reflect the brackets in its displayed syntax; no undocumented default, error code or argument coercion is inferred. Official EOMONTH source, accessed 2026-10-11.
Hands-on worksheet with independently computed results
Open a blank worksheet and select any empty cell for the formula. Use the copy-ready examples below, entering a holiday into F2 where shown. Never enter the date text directly if the editor does not recognize its locale; use DATE(…) to construct it.
| Scenario | Start | Offset/end | Holiday in F2 | Copy-ready formula | Expected result (independent) |
|---|---|---|---|---|---|
| month-end leap | 2024-01-31 | 1 | None | =EOMONTH(DATE(2024,1,31),1) |
2024-02-29 |
| month-end normal | 2025-01-31 | 1 | None | =EOMONTH(DATE(2025,1,31),1) |
2025-02-28 |
| previous month | 2026-03-15 | -1 | None | =EOMONTH(DATE(2026,3,15),-1) |
2026-02-28 |
| cross calendar year | 2026-12-31 | 2 | None | =EOMONTH(DATE(2026,12,31),2) |
2027-02-28 |
| leap anniversary | 2024-02-29 | 12 | None | =EOMONTH(DATE(2024,2,29),12) |
2025-02-28 |
| same month | 2026-05-10 | 0 | None | =EOMONTH(DATE(2026,5,10),0) |
2026-05-31 |
| previous leap year | 2024-06-30 | -4 | None | =EOMONTH(DATE(2024,6,30),-4) |
2024-02-29 |
| half-year shift | 2025-08-31 | 6 | None | =EOMONTH(DATE(2025,8,31),6) |
2026-02-28 |
Copy any expression in Copy-ready formula to a result cell. If that row has a holiday, first enter the shown value into F2 using =DATE(year,month,day). When testing a new row, change F2 accordingly. Dates shown in the outcome column require date formatting for EDATE, EOMONTH and WORKDAY; NETWORKDAYS returns an integer. The listed results are independent Python predictions, not a record of ONLYOFFICE execution.
The accompanying CSV is a fixture of input dates and independently predicted output, not a file executed in ONLYOFFICE. The dates were calculated using Python’s datetime.date, calendar.monthrange and ordinary Monday–Friday looping; that separate mathematical implementation may differ in undocumented edge cases from ONLYOFFICE’s actual engine.
First formula to paste
=EOMONTH(DATE(2024,1,31),1)
Independent expected result: 2024-02-29. Paste this formula into an empty cell (no other input cells are needed for this first example), then format it as a date when applicable. This is a runnable test to perform in a native ONLYOFFICE editor; the outcome has not been observed there.
Four useful advanced patterns
1. End of current month
=EOMONTH(DATE(2026,10,11),0)
Independent expected result: 2026-10-31. Fixed cutoff independent of the day within the month.
2. End of previous month
=EOMONTH(DATE(2026,10,11),-1)
Independent expected result: 2026-09-30. Useful when closing the September reporting period.
3. First of next month
=EOMONTH(DATE(2026,10,11),0)+1
Independent expected result: 2026-11-01. Serial arithmetic advances one day; predicted calendar display needs date formatting.
4. Quarterly closing date
=EOMONTH(DATE(2026,10,11),2)
Independent expected result: 2026-12-31. October plus two months reaches December, the Q4 close date.
Common problems and troubleshooting
| Issue | Evidence-based diagnostic |
|---|---|
| A raw date serial appears | Apply a calendar-date number format. |
| Wrong calendar month | Check the sign of months: negative is earlier; zero means the same month. |
| February returns an unexpected day | Check leap year and 1904 date system settings; prefer unambiguous typed dates. |
| Decimal offsets and invalid dates | Exact ONLYOFFICE coercion/error code is not specified on the reference and requires targeted testing. |
If your workbook displays #VALUE!, #NUM!, or another result, do not ascribe a specific ONLYOFFICE exception rule to it without a reproducible native experiment: the concise function page does not establish detailed input coercion and errors. Preserve the exact input cell types and locale. A visually formatted date is not by itself proof that the stored value is a valid date.
Related date functions and practical alternatives
EDATE shifts a date by a number of months; it is not a general month-end finder.
- EDATE — confirmed vendor reference; not a claim that a corresponding Spreadsheet-Tutorials.com tutorial is live.
- DATE — confirmed vendor reference; not a claim that a corresponding Spreadsheet-Tutorials.com tutorial is live.
- MONTH — confirmed vendor reference; not a claim that a corresponding Spreadsheet-Tutorials.com tutorial is live.
Cross-application compatibility: Microsoft Excel’s EOMONTH documentation gives the same English signature. Excel describes this same syntax, including numeric date serials. Excel explicitly truncates fractional offsets; that particular rule is not guaranteed by ONLYOFFICE’s short function page. Function availability and error semantics in Google Sheets, LibreOffice Calc and older workbook formats have not been experimentally checked here; don’t assert universal equivalence from the name alone.
Formula entry, locale, versions and validation boundaries
These samples use the English formula names with commas and begin with =. ONLYOFFICE’s function entry guide explains its function picker and Formula tab, while the Advanced Settings guide documents Formula Language, Region, customizable numeric separators and the 1904 date system option. A machine configured for another language or regional syntax should use the editor’s function picker to confirm the correct localized formula; the short function references do not establish every locale’s argument separator. Use DATE(year,month,day) instead of ambiguous date strings and apply an explicit ISO-like date display to results.
Edition evidence (checked 2026-10-11): The official unversioned English ONLYOFFICE help page documents the named function but does not state its first-supported Desktop/Web/mobile build. ONLYOFFICE Docs 10.0 was announced 2026-10-10; the independent Desktop Editors changelog currently lists 9.4.0 released 2026-05-19. These release references establish two distinct version streams, not native function test coverage. Availability and behaviour in a specific build, mobile editor, workbook imported from Excel or old-format .xls file remain unverified. The 1904 option changes numeric date serials; avoid comparing raw serial integers across workbooks without first checking workbook settings.
How to verify a discrepancy in your edition
- Write down the application (ONLYOFFICE Docs/web or Desktop), exact version/build, OS/browser, workbook date system and formula language.
- Enter the numeric DATE fixtures shown here into a new workbook, not text parsed from a CSV locale.
- Format date results as
yyyy-mm-ddwhere available, while retaining a numeric-format copy if serial debugging is necessary. - Compare the displayed outcome against the independently expected column; an expected result is not a screenshot, observation or claim that the software actually produced it.
- If any outcome differs, preserve both the formula and actual output and flag the guide for correction; do not publish the expected prediction as tested truth.
Official reference and verification
- ONLYOFFICE Spreadsheet Editor — function documentation
- EDATE
- DATE
- MONTH
- function entry guide
- Advanced Settings guide
- ONLYOFFICE Docs 10.0
Verification status: Official documentation checked; example outcomes were independently reasoned or arithmetically checked where applicable. Not executed in ONLYOFFICE Spreadsheet Editor.
- No genuine ONLYOFFICE Spreadsheet Editor screenshots are included; this guide does not use mock application images.