The value would be 10 if the question was to sum the numbers between 8 and 6 in this instance. Always 9 cells next to each other. Always the numerals 1 to 9 in each of the cells.
Excel 2013/2016 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | Num 1 | Num 2 | Result | ||||||||||||
2 | 8 | 7 | 1 | 2 | 6 | 3 | 9 | 5 | 4 | 8 | 6 | 10 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
M2 | =SUM(INDEX(A2:I2,MATCH(K2,A2:I2,0)):INDEX(A2:I2,MATCH(L2,A2:I2,0)),-K2,-L2) |
Excel Workbook | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | Between 1 | Between 2 | Result | ||||||||||||
2 | 8 | 7 | 1 | 2 | 6 | 3 | 9 | 5 | 4 | 8 | 6 | 10 | |||
3 | 6 | 7 | 1 | 2 | 8 | 3 | 9 | 5 | 4 | 8 | 6 | 10 | |||
4 | 5 | 6 | 2 | 1 | 4 | 7 | 9 | 3 | 8 | 6 | 2 | 0 | |||
5 | 5 | 6 | 2 | 1 | 4 | 7 | 9 | 3 | 8 | 5 | 8 | 32 | |||
Sum Between |
Hi, here is a formula based option you can try.
Excel 2013/2016
A B C D E F G H I J K L M 1 Num 1 Num 2 Result 2 8 7 1 2 6 3 9 5 4 8 6 10
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>Sheet1
Worksheet Formulas
Cell Formula M2 =SUM(INDEX(A2:I2,MATCH(K2,A2:I2,0)):INDEX(A2:I2,MATCH(L2,A2:I2,0)),-K2,-L2)
<thead>
</thead><tbody>
</tbody>
<tbody>
</tbody>