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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
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?
 

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
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.
 

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
August only has 3 FULL calendar weeks in it. The first and last weeks are short. That is what was requested in the posting.
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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
 

Forum statistics

Threads
1,136,347
Messages
5,675,233
Members
419,555
Latest member
Paddington

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
Top