Find days in a Month

  • Thread starter Thread starter Jman
  • Start date Start date
J

Jman

I want to know how many days are in a month.
In A1 I have a date ex. 3/3/08.
In B1 i want to give me total days in that month.

Is there a formula for that.
 
Jman said:
I want to know how many days are in a month.
In A1 I have a date ex. 3/3/08.
In B1 i want to give me total days in that month.

Is there a formula for that.

nevermind i got it..

=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))
 
One way


=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))


format as general



--


Regards,


Peo Sjoblom
 
Take your pick:

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

=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))

This one requires the Analysis ToolPak add-in be installed on Excel versions
prior to Excel 2007.

=DAY(EOMONTH(A9,0))
 

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

Back
Top