Rolling Week number - end of year

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
902
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
 
row() is a counter that changes as you copy down (use column() if going across). $I$1-91+(7*ROW(A1)-7)) takes the date entered in I1, goes back 7 * 13 days for n = 1 , 7 * 12 for n = 2, etc.
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

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