Hi All,
I have been attempting to do a dynamic range sum on my data set by date range but to no avail.
I need to accumulate the previous for 4 weeks values for each week. I have achieved this by using the multi-row formula.
The issue I have is when there are weeks missing in my data set.
| | Value | Required Output |
| Week 1 | 10 | |
| Week 2 | 20 | |
| Week 3 | 5 | |
| Week 4 | 40 | 75 |
| Week 5 | 10 | 75 |
| | | |
| Week 7 | 5 | 55 |
| Week 8 | 30 | 45 |
| Week 9 | 20 | 55 |
| Week 10 | 50 | 105 |
The required output column is the current week plus the previous 3 weeks values. So week 4's output is week1:Value + week2:Value + week3:Value + week4:Value.
The problem is when I try and calculate weeks 7, 8 and 9 because week 6 is missing.
I need to show that week 6 is missing so in this case I need to sum the weeks that are present in the 4 week window.
So week 7's calculation would be week4:Value + week5:Value + week7:Value.
Currently the multi-row expression I am using is [Row-3]+[Row-2]+[Row-1]+[Row].
Any ideas?
Thanks,
Tom