Last Day of Month

  • Thread starter Thread starter Dale Hymel
  • Start date Start date
D

Dale Hymel

I have been using
=DAY(DATE(YEAR(A1),MONTH(A1)+1,0)) to return the number of days in the month
on Cell A1.

Is there a better way?
Thanks
 
Hi:

You can use the EOM function, but that requires the Analysis Toolpak to be
installed. I prefer to use the method you have described.

Regards,

Vasant.
 
Hi,

=32-DAY(A1-DAY(A1)+32)

2 Function calls instead of 4 but hey, I don't think your formula will slow down
your spreadsheets ;-)

Regards,

Daniel M.
 
Back
Top