Calculating Weeks in Current Quarter

kiyo052

Board Regular
Joined
Oct 11, 2013
Messages
134
Is it possible to calculate how many weeks are in the current quarter?

For example, if A1= 4, then B2=13.

I was thinking there was an easier way then counting how many weeks each quarter.

Thank you in advance for your help!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I think you need to define some terms

What's the current quarter 1st October 2017 to 31st December 2017?

Which day does the week start.

How do you handle partial weeks?
 
Upvote 0
Hi Barry,

Thanks for the quick reply! I actually never thought of those things....

Current quarter would equal 10/1/17 to 12/31/17

The number of weeks should only count work days. Therefore, the first day of the week is Monday 10/2/17

A full week is considered Monday to Friday. I would not count the week if the quarter starts or ends on Wednesday or Thursday.

Let me know if you need any further info!
 
Upvote 0
If you have the year in A1 e.g. 2017 and quarter number in B1, e.g. 4 then this formula will give you the total number of weeks in that quarter, counting weeks if the Wednesday of that week is within the quarter

=NETWORKDAYS.INTL(DATE(A1,B1*3-2,1),DATE(A1,B1*3+1,0),"1101111")

Using this method ensures that every week is counted in one quarter only.

Unsurprisingly, as every quarter is between 90 and 92 days, this will give you 13 in most cases - only giving 14 if Q3 or Q4 starts on a Wednesday or 12 if Q1 in a non leap year starts on a Thursday
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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