How to Find the Last Day of a Month with EOMONTH in Excel

Get month-end dates with EOMONTH, set end-of-next-month payment terms, and prorate a subscription by days left.

You will learn to

  • Return the last day of a date’s month
  • Jump to the end of a later month
  • Prorate a monthly fee by the days remaining

How it works

EOMONTH(start_date, months) returns the last day of the month that is a given number of months away. =EOMONTH(B2,0) is the end of the same month, =EOMONTH(B2,1) the end of next month, and =EOMONTH(B2,-1) the end of last month. It handles 28-, 29-, 30- and 31-day months automatically.

EOMONTH is perfect for proration: EOMONTH(B2,0)-B2+1 is the number of days left in the month including the start day, and DAY(EOMONTH(B2,0)) is the number of days in that month.

=EOMONTH(B2,0)