Formula

sitelbanat

Board Regular
Joined
Oct 17, 2005
Messages
152
Is there a formula that calculates how many full calendar weeks are in a month?

for example september 2006 = 4
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Are you after only full calendar weeks? What about partile weeks at the beginning and end of the month?
Can you explain your request a little more clearly?
 
Upvote 0
I don't know a simple formula to do this. I don't have time today to spend on this, but I would try using the WEEKNUM function from Analysis Toolpak and run some calculations against the date range of the month in question.
 
Upvote 0
August only has 3 FULL calendar weeks in it. The first and last weeks are short. That is what was requested in the posting.
 
Upvote 0
Perhaps you already have your answer but if you want to count full weeks Sunday to Saturday, i.e. August 2006 has 3 but September 2006 has 4 then with any date from the month in question in A2

=INT((WEEKDAY(A2-DAY(A2))+DAY(DATE(YEAR(A2),MONTH(A2)+1,0)))/7)-1
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top