Last Day of Month

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
 
V

Vasant Nanavati

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.
 
D

Dale Hymel

Looked at EOM, and I think your are right, the below is just as easy. Many
Thanks
 
D

Daniel.M

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top