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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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