Show Month from Week #
Hello,
I'm creating a helper column that needs to show what month a week number was from.
For Example, I have a sheet with a [Date] column and [Week #] column.
I have second sheet that has a Week # and is pulling data from my first sheet based on a calculation using Week #.
In the second sheet, I'd like to create a helper column that displays the Month that the Week # is from, I.E. - Week 1 = January, Week 6 = Feb, etc...
Can this be done with a formula?
Best Answer
-
The easiest way to do this is in stages on a reference sheet.
Step 1:
Create a date type column and enter ever date from Jan 1 to Dec 31.
Step 2:
Create a text/number column called "Weeknumber" and use this formula:
=WEEKNUMBER([Date Column]@row)
Step 3:
Create a text/number column called "Month Number" and enter the numbers 1 - 12 in it.
Step 4:
Create a text/number called "Month Text" and enter the desired text for each month.
Step 5:
Create a text/number column to house the final desired output of the month in relation tot he week number and use this formula
=INDEX([Month Text]:[Month Text], MATCH(MONTH([Date Column]@row), [Month Number]:[Month Number], 0))
Now you have a table that has every date, the corresponding week number, and the appropriate month text.
Answers
-
The easiest way to do this is in stages on a reference sheet.
Step 1:
Create a date type column and enter ever date from Jan 1 to Dec 31.
Step 2:
Create a text/number column called "Weeknumber" and use this formula:
=WEEKNUMBER([Date Column]@row)
Step 3:
Create a text/number column called "Month Number" and enter the numbers 1 - 12 in it.
Step 4:
Create a text/number called "Month Text" and enter the desired text for each month.
Step 5:
Create a text/number column to house the final desired output of the month in relation tot he week number and use this formula
=INDEX([Month Text]:[Month Text], MATCH(MONTH([Date Column]@row), [Month Number]:[Month Number], 0))
Now you have a table that has every date, the corresponding week number, and the appropriate month text.
-
Thanks! That worked well.
Now, I assume that I need to reference this when creating the helper column on my original sheet? How does that work?
-
That would be another INDEX/MATCH.
-
Thanks Paul!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 464 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!