I'm looking for a way to sum every nth cell in a tab. In the example below, you can see that the consolidated view is a simple manual sum, but I'm looking for a way to automate the process. So if I'm adding a 4th store with quantity in cells C14 to E15, I'd like the sums in cells C2 to E3 to include them.
In this example, the quantities are every 3rd row, but I need to be able to modify this in the formula as it can change.
Thanks.
In this example, the quantities are every 3rd row, but I need to be able to modify this in the formula as it can change.
Thanks.
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | 2019 | 2020 | 2021 | ||||
2 | All | Shoes | 8 | 30 | 23 | ||
3 | Cakes | 18 | 11 | 14 | |||
4 | |||||||
5 | Store 1 | Shoes | 1 | 8 | 12 | ||
6 | Cakes | 3 | 7 | 5 | |||
7 | |||||||
8 | Store 2 | Shoes | 5 | 14 | 1 | ||
9 | Cakes | 8 | 3 | 9 | |||
10 | |||||||
11 | Store 3 | Shoes | 2 | 8 | 10 | ||
12 | Cakes | 7 | 1 | 0 | |||
13 | |||||||
14 | |||||||
15 | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:E3 | C2 | =C5+C8+C11 |