# Formula

#### sitelbanat

##### Board Regular
Is there a formula that calculates how many full calendar weeks are in a month?

for example september 2006 = 4

### Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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?

Yes full calendar weeks

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.

this is what im looking for thank you

August only has 3 FULL calendar weeks in it. The first and last weeks are short. That is what was requested in the posting.

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

Replies
1
Views
209
Replies
3
Views
354
Replies
22
Views
373
Replies
1
Views
299
Replies
11
Views
355

1,219,936
Messages
6,151,066
Members
451,006
Latest member
dhinze84

### 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?

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