Rolling Week number - end of year

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
907
I have a dashboard that displays data by week number. Since the turn of the year my rolling week table needs to reset at week 1.

For example I will trend 9 weeks of data today(weekNum()-9)
Then the next cell would be +1
Until I get 9 weeks minus the current week

Now I get week 52,53,54,55 etc and have to manually update it 50,51,52,1,2,3 etc

The problem will solve itself once we get to the 9th week this year, what can I use to reset the week?

My data is 9 rows worth the first cell today(weekNum)-9, then each cell after is +1
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I don’t think that is working. It needs to be dynamic... so as the weeks approach Weeknumber 52, the next cell will be 1, not 53.

It’s a dashboard and needs to be fully automated based on dates. As a new week turns on Sunday, cell A9 would have week number 6, cell A1 would have week 50, then the next Sunday, A1 would be week 52, A9 would be week 7,


Does that make sense ? A rolling weekly table

What does the 9 do?
 
Upvote 0
Ey6Fx8



I need it to reset after week 52 to go to Week 1.

The Dynamic date is based on Today WeekNum -9 weeks.
 
Upvote 0
This is how I've done it in the past. Built a look up table, with 2 years of dates, added the week number

https://flic.kr/p/24dnttB

Here is what the results are
https://flic.kr/p/EyboHB

I start at week 5, by doing VlookUp to get the current Week Number
Then minus 1 week for each cell. If the prior week was 52, then minus 1 week, and check for Week 1, then switch to week 52.

I need to to all this in one formula.
 
Upvote 0
You said 9 weeks above, but the picture has 13 (???). Weeknum will start again at 1 each new year. Do you need weeknum at all? Why not something like:


Excel 2010
EFG
111
221
331
441
551
661
771
882
992
10102
11112
12122
13132
14142
15153
16163
17173
18183
19193
20203
21213
22224
23234
24244
25254
Sheet4
Cell Formulas
RangeFormula
E1=MOD(ROW(A1)-1,52)+1
G1=MOD(-1+ROUNDUP(ROW(A1)/7,0),52)+1


That cycles 1-52 or 7 rows of 1,2,3......52 then starts at 1?
 
Upvote 0
Or this?


Excel 2010
IJ
12/8/201845
246
347
448
549
650
751
852
91
102
113
124
135
Sheet4
Cell Formulas
RangeFormula
J1=WEEKNUM($I$1-91+(7*ROW(A1)-7))
 
Upvote 0
Or this?


Excel 2010
IJ
12/8/201845
246
347
448
549
650
751
852
91
102
113
124
135
Sheet4
Cell Formulas
RangeFormula
J1=WEEKNUM($I$1-91+(7*ROW(A1)-7))



I think this will work. Let me test it.

The whole idea is the sheet I have is a dashboard, data gets loaded into it, and when the user opens the file, depending on the day that it is, that correlates to a week number, which must change the table, I then connect SUMIFS to the week numbers and report out on the trending for each week.

It can be 13 weeks, or 9 or any number, its configurable really. I can link this to a control panel and the user can configure how they want to see the trending.

Thank you !!
 
Upvote 0

Forum statistics

Threads
1,224,787
Messages
6,180,950
Members
453,008
Latest member
GRTMAN

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