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
[TABLE="width: 372"]
<tbody>[TR]
[TD]
breakdown explanation would be helpful

[TABLE="class: grid, width: 372"]
<tbody>[TR]
[TD][/TD]
[TD]2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]MARCH[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Week (Monday to Sunday)[/TD]
[TD] week no.[/TD]
[/TR]
[TR]
[TD]2-Apr-18[/TD]
[TD]8-Apr-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09-Apr-18[/TD]
[TD]15-Apr-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16-Apr-18[/TD]
[TD]22-Apr-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23-Apr-18[/TD]
[TD]29-Apr-18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]30-Apr-18[/TD]
[TD]6-May-18[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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