FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to eomonth last day in Excel

Set billing period end dates, calculate quarter-end dates, or find the last day of any month without knowing whether it has 28, 29, 30, or 31 days.

beginnerDate & TimeEOMONTH reference

Step-by-step instructions

How to eomonth last day3 steps

1

Enter a date in column A — any date within the month you want.

2

Use 0 as the second argument to get the last day of that same month.

3

Use 1 for next month, -1 for the previous month, and so on.

Example data

Worked example

Any Date in MonthLast Day of Month
2026-02-102026-02-28
2026-03-012026-03-31
2026-04-152026-04-30

Common mistakes

Errors to watch out for

Result displays as a number

EOMONTH returns a date serial number. Format the result cell as a Date to display it correctly.

Off by one month

EOMONTH(A2,0) returns the last day of the month containing A2, not the last day of the next month. Use 1 to get the last day of the following month.

FAQ

Frequently asked questions

How do I get the first day of the next month?

Add 1 to EOMONTH — =EOMONTH(A2,0)+1 gives you the first day of the month following the date in A2.

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.