Return Number of day per month

F

Frank Kabel

Hi
if A1 contains a date try the following
=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))
This returns the n umber of days for the month in A1
 
P

Peo Sjoblom

This ingenuous formula by Daniel Maher does it

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

where the date is in A1
 

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

Top