• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to get number of weeks in a month

ThrottleWorks

Excel Ninja
Hi,

I am trying to get count of weeks from a month.
I tried various formula from Google but not able to get correct result.

All formulas are giving me result as 4.
For example, October 2018 have 5 weeks (Monday) but I am not getting correct result.

Can anyone please help me in this.
 
Hi,

Pls write 1st date of the month like
A1: 1-oct-2018

and put below formula in B1 to get your result

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&EOMONTH(A1,0))),2)=1))

regards
Naresh
 
Back
Top