Determining weeks of any month

vinskies

New Member
Joined
Dec 13, 2017
Messages
3
Hey Guys,

I'm trying to output the dates of the weeks (Monday to Sunday) of any month given the following criteria:
First week of month is if the first Thursday falls on the first week of the month.

and correspondingly the last week if the next month's first Thursday falls on the first week of the next month.

Ultimately I just want to output the week dates of a "month".
And not show the week that does meet meet the criteria to be included for the month.

D4 is =(DATE(year,month number,3))- WEEKDAY(DATE(year, month number, 2),2)

all other formulas follows: eg.
D5 is >> =J52+1
E5 is >> =I53+6

breakdown explanation would be helpful

2018
MARCH4
Week (Monday to Sunday) week no.
2-Apr-188-Apr-18
09-Apr-1815-Apr-18
16-Apr-1822-Apr-18
23-Apr-1829-Apr-18
30-Apr-186-May-18

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Your explanation is a little confusing, but it sounds like you're using ISO week numbering, where Week 1 contains the first Thursday in January?

If you have Excel 2010 or later, you can use =WEEKNUM(YourDate,21) to return the ISO week number.
 
Upvote 0

Forum statistics

Threads
1,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

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