Steve 1962
Active Member
- Joined
- Jan 3, 2006
- Messages
- 349
- Office Version
- 365
- Platform
- Windows
Hi
Can't get the OFFSET function to work correctly.
In A2, I want to nominate the amount of moving weeks to use for the average. In this example, I have selected 3 however, weeks 1 & 2 are still showing in cells D4 & D5. With the IFERROR function, they should be blank.
If I was to select 9 in cell A2, then I would expect all cells from D4 to D11 to be blank also.
Thanks
Can't get the OFFSET function to work correctly.
In A2, I want to nominate the amount of moving weeks to use for the average. In this example, I have selected 3 however, weeks 1 & 2 are still showing in cells D4 & D5. With the IFERROR function, they should be blank.
If I was to select 9 in cell A2, then I would expect all cells from D4 to D11 to be blank also.
Thanks
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Weeks | x | ||||
2 | 3 | x | ||||
3 | Week | x | Moving AV | |||
4 | 1 | 10.3 | 10.4 | |||
5 | 2 | 9.7 | 10.4 | |||
6 | 3 | 11.1 | 11.1 | |||
7 | 4 | 10.6 | ||||
8 | 5 | 10.3 | ||||
9 | 6 | 10.6 | 10.6 | |||
10 | 7 | 10.1 | 10.5 | |||
11 | 8 | 11.1 | 10.4 | |||
12 | 9 | 10.5 | 10.3 | |||
13 | 10 | 9.5 | 10.4 | |||
Weekly AV (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D4:D13 | D4 | =IFERROR(AVERAGE(OFFSET($C$3,ROW()-$A$2,0,$A$2,1)),"") |