Non calendar months - 1st Monday in Month

Sayth

Board Regular
Joined
Jun 4, 2010
Messages
213
I am trying to use a cell formula to determine weeknum. The first monday of the month is the first week.

I have adapted this formula from here http://www.cpearson.com/excel/WeekNumbers.aspxto this
Code:
=TRUNC(((B3-DATE(YEAR(B3),1,1)+MOD((1 = Monday)-WEEKDAY(DATE(YEAR(B3),1,1)),7))+6)/7)

b2 has my day in dd/mm/yyyy format. Can't quite get it to work though, any ideas.
 
I am still unclear on what exactly you are looking for. You just want a formula that says:
If B2 = January Then January Week 1, Week 2, Week 3, Week 4 in cells C2-E2?
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I am still unclear on what exactly you are looking for. You just want a formula that says:
If B2 = January Then January Week 1, Week 2, Week 3, Week 4 in cells C2-E2?

I will find a picture. Its in nearly every pivot table ever created I just don't know the words to describe it.
 
Upvote 0
So this is the date picker in pivot table I am referring to.
27-06.jpeg


But this is impractical in reality you can't have managers and technophobes selecting every day in each month or each week everytime. So I want to pre bundle/group the dates into Months & weeks.

the month selectors in here are also impractical as they aren't adjustable(to my knowledge) to reporting cycles.
 
Last edited:
Upvote 0
So this is the date picker in pivot table I am referring to.
27-06.jpeg


But this is impractical in reality you can't have managers and technophobes selecting every day in each month or each week everytime. So I want to pre bundle/group the dates into Months & weeks.

the month selectors in here are also impractical as they aren't adjustable(to my knowledge) to reporting cycles.
Sorry, I don't have any other suggestions.
 
Upvote 0
I can group in my pivot table drop down filter by craeting a column in my datasheet and using month(b2), any ideas how to group weeks under months.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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