Dynamic Sum Across Sheets

davin1130

New Member
Joined
Mar 15, 2019
Messages
39
My workbook contain 13 sheets. One sheet for each month (January thru December) plus one sheet to be ale to run totals. I can easily use =Sum(January:December!B2) to calculate the sum of all B2 cells in sheets January thru December. However, i want the ability to select the range of sheets based off of cell A1 (which will have the desired beginning month) and cell A2 (which will have the desired ending month). Please Help !
 
Hello,

Make sure to type all input data as follows :

1. cell A1 : January
2. cell A2 : March
3. cell A3 : B2

which results in following Array Formula :

Code:
[COLOR=#333333]=SUM(IF((MATCH(Sheets,Sheets,0)>=MATCH($A$1,Sheets,0))*(MATCH(Sheets,Sheets,0)<=MATCH($A$2,Sheets,0)),N(INDIRECT("'"&Sheets&"'!"&$A$3))))[/COLOR]

For an Array Formula ... instead of the standard Enter key ... you need to use simultaneously the three keys : Control Shift Enter ...

Hope this clarifies
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top