FormulaCamp
Completed
← All functions
Date & time

EOMONTH

Last day of the month.

Syntax

EOMONTH(start_date, months)

Example: =EOMONTH(A2,0)

Available in: All versions

EOMONTH returns the last day of the month that is a given number of months before or after a start date: =EOMONTH(start_date, months). Use it for month-end deadlines, billing cycles and counting days in a month.

When to use it

Arguments explained

Worked examples

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

Common errors and how to fix them

Related functions

Frequently asked questions

How do I get the first day of the month?
Use =EOMONTH(A2,-1)+1.
What is the difference between EOMONTH and EDATE?
EDATE keeps the same day number; EOMONTH always lands on the last day of the month.
How do I get the first day of next month?
=EOMONTH(A2,0)+1.
Does EOMONTH handle leap years?
Yes. The February result is 29 in leap years.

More in Date & time