Contact

EOMONTH Function in Google Sheets: Formula, Examples & Troubleshooting

Date & time Beginner Google Sheets

Learn the EOMONTH formula in Google Sheets: find the final calendar day of an offset month, with reproducible examples, expected answers and compatibility cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: EOMONTH(start_date,months) returns the final calendar date of the offset month. =EOMONTH(DATE(2026,2,4),0) displays 28 Feb 2026. Use a date format for that result; use DAY on it only when you want the numeric month length.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official EOMONTH reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and date-valued output

=EOMONTH(start_date, months)

Both arguments are required. The start should be a valid numeric date or DATE expression. Positive month offsets move forward, negative offsets move backward, and zero selects the current month. Google documents truncation of a decimal offset’s fractional part.

Use English function names and comma separators for these controls. Date-format the result; a plain numeric display can be a valid date serial rather than a calculation failure.

Two original worked examples

=EOMONTH(DATE(2026,2,4),0)
=EOMONTH(DATE(2024,2,4),0)

Expected displayed dates are 28 Feb 2026 and 29 Feb 2024. February’s last day depends on the year. The fourth day used as the anchor does not become the output day because the function explicitly selects month end.

Advanced example: compare signed and fractional offsets

For DATE(2026,10,15):

Offset Expected date
−1 2026-09-30
0 2026-10-31
1 2026-11-30
3 2027-01-31
2.9 2026-12-31
−2.9 2026-08-31

Use =EOMONTH(DATE(2026,10,15),2.9) for the fifth row. The decimal part is discarded, giving offset 2, not 3. Likewise −2.9 becomes −2, not −3. Use integer-input validation if those shortened offsets are not acceptable in the schedule.

Advanced example: build monthly boundaries

With A2 containing =DATE(2026,10,11):

=EOMONTH(A2,-1)+1
=EOMONTH(A2,0)+1

Expected dates are 2026-10-01 and 2026-11-01. Adding one to a month end advances one calendar day. It is not an instruction to add one month.

The boundaries are 31 days apart. For a December 2026 anchor, the next-month boundary is 2027-01-01, so the same pattern naturally handles the year change.

Advanced example: total complete months from date-only rows

Create this independent A1:B5 dataset:

Row A · Date formula B · Amount
2 =DATE(2026,9,30) 10
3 =DATE(2026,10,1) 20
4 =DATE(2026,10,31) 30
5 =DATE(2026,11,1) 40

For the October reporting month:

=SUMIFS(B2:B5,A2:A5,">="&(EOMONTH(DATE(2026,10,11),-1)+1),A2:A5,"<"&(EOMONTH(DATE(2026,10,11),0)+1))

Expected result: 50, from 20+30. September 30 falls before the lower boundary and November 1 is excluded by the strict upper test. Using SUMIFS with numeric boundaries avoids a locale-dependent text-date criterion.

These controls use date-only rows. If imported values contain times, retain and test that distinction instead of assuming their display proves the stored value has no time component.

Advanced check: extract month lengths

=DAY(EOMONTH(DATE(2024,2,4),0))
=DAY(EOMONTH(DATE(2026,2,4),0))
=DAY(EOMONTH(DATE(2026,4,15),0))

Expected numeric counts are 29, 28 and 30. The intermediate EOMONTH output is a date; the final DAY output is a count. Displaying both with the same date format obscures that difference.

Advanced example: build a fixed-anchor month-end schedule

Put =DATE(2026,11,15) in D2 and offsets 0, 1, 2 and 3 in E2:E5. Fill down:

=EOMONTH($D$2,E2)

Expected dates are 2026-11-30, 2026-12-31, 2027-01-31 and 2027-02-28. Each row is measured from the same anchor. A plain EDATE anniversary would answer a different question and should not silently replace this month-end policy.

Parsing and unresolved native cases

Google warns that EOMONTH(10/10/2000,1) contains division, with input 0.0005, rather than a literal October date. Construct the intended input with DATE or use a validated date cell.

The short reference does not establish a complete error-code matrix for malformed text, blanks, Boolean values or out-of-range serials. Historical conversions and all timestamp-fraction cases remain unverified. No error behavior from Excel or another product is assumed merely because the function name matches.

Related guides already published for this function: Microsoft Excel | LibreOffice Calc | ONLYOFFICE Spreadsheet Editor | Apple Numbers | Zoho Sheet

A guide in another program is a separate documented reference, not a guarantee of identical parsing, historical serials or native error displays. Use the function comparison tool to inspect guide coverage.

The complete guide and original examples were reviewed on October 14, 2026 against direct Google documentation. Expected calendar and numeric outputs were independently calculated; no native Google Sheets execution, mobile-client certification or complete input-conversion test was performed.