FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

EOMONTH in Google Sheets

EOMONTH with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the EOMONTH Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

End of the current month

A
1Date
23/9/2024

Formula: C1: =EOMONTH(A2,0)

Result: 3/31/2024

0 months means the month of the start date.

End of next month

A
1Date
23/9/2024

Formula: C1: =EOMONTH(A2,1)

Result: 4/30/2024

Positive months move forward; negative move back.

Days in a month

A
1Date
22/10/2024

Formula: C1: =DAY(EOMONTH(A2,0))

Result: 29

The day number of the last day equals the length of the month. 2024 is a leap year.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =EOMONTH(A3,1)

Example spreadsheet for EOMONTH
ABCDEF
1StartEndHolidayTimeResult
23/15/20266/20/20265/1/202614:452/28/2026
31/31/20262/28/20265/9/202609:30
412/24/20251/9/2026
Result in F2: 2/28/2026
Practice this in a lesson: Tenure, Deadlines, Weekdays

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.