Hello, I'm trying to do either a sumifs or index(match() in order to sum a range of cells (multiple columns and rows) based upon a reference cell which can be modified to adjust the number of columns which are summed. For example, in the below table on the right are my results. Since A1 is 3 months, the fruit totals are summing columns B,C, & D so long as it's the appropriate type of fruit.
<tbody>
</tbody>
If my variable was 4 months the results would look like:
<tbody>
</tbody>
Any suggestions on how to sum up the totals of ranges based upon a reference cells which makes your range dynamic? Thanks for the help!
3 | Months | ||||||||
Fruit | 1/1/2017 | 2/1/2017 | 3/1/2017 | 4/1/2017 | Fruit | Total | |||
Apple | 10 | 4 | 6 | 7 | Apple | 20 | |||
Banana | 3 | 8 | 1 | 5 | Banana | 12 | |||
Orange | 2 | 5 | 7 | 3 | Orange | 14 | |||
<tbody>
</tbody>
If my variable was 4 months the results would look like:
4 | Months | ||||||||
Fruit | 1/1/2017 | 2/1/2017 | 3/1/2017 | 4/1/2017 | Fruit | Total | |||
Apple | 10 | 4 | 6 | 7 | Apple | 27 | |||
Banana | 3 | 8 | 1 | 5 | Banana | 17 | |||
Orange | 2 | 5 | 7 | 3 | Orange | 17 | |||
<tbody>
</tbody>
Any suggestions on how to sum up the totals of ranges based upon a reference cells which makes your range dynamic? Thanks for the help!