Excel: How to calculate the Last Day of any Month

Over the years, I’ve made a lot of forms in Excel. I always aim for something simple and clean. If something is going to get complicated, it’s likely because the form has a date. Dates are always a challenge because there’s not the same number of days in every month, and not even the same number of days in every year.

Just the other day, I ran across the =eomonth() function. All it does is give you the last day of a month. It’s brilliant. I’m not sure how long this function has been around. Before this, I would always calculate the first day of the next month and subtract a day.

In the video, I show you how I use it. I’m also giving you my practice Timesheet (linked below).

The function is simply this: =eomonth(start_date, months)

Let’s say you have 9/13/24 in cell A1. Here’s how that function would work:

  • eomonth(A1,0) = 9/30/24
  • eomonth(A1,3) = 12/31/24
  • eomonth(A1,60) = 9/30/29
  • eomonth(A1,-2) = 7/31/24

Leave a Reply

Discover more from JCT Accounting Co

Subscribe now to keep reading and get access to the full archive.

Continue reading