I have a (fully working) formula which looks across all the other sheets referred to in an array, and sums up all the costs in one of the columns in those sheets.
It works just fine - my question is further down, but let me give context.
The formula is:
=ArrayFormula(INDEX(
QUERY(
{
'2017-01'!A$1:C$1000;
'2017-02'!A$1:C$1000;
'2017-03'!A$1:C$1000
},
CONCATENATE("select Col1, SUM(Col3) where Col1='", B2, "' group by Col1 label Col1 '', SUM(Col3) ''")
),
0, 2
))
You can see the names of the sheets are simply year-month
and the range is just the first three columns.
That formula is in entered into each of the "Total Cost" cells in a master sheet like this:
SKU Code Name Total Cost
----------------------------------
0001 O8RE4 Things 3.93
0022 UO0V8 Stuff 28.39
And then each sheet called 2017-##
has data like this:
Code Name Cost
--------------------
O8RE4 Things 9.68
UO0V8 Stuff 11.86
The formula spits out just a single number (no headers) which is the total of all the costs for each of the "Things" and "Stuff" items in all the other sheets.
Great! :)
But each month I (or someone less technical!) need to add another reference to the list of sheets, and then copy that down the column.
Question: Is there a way to reference a range of cells in another sheet (without using Google Script), which contains a list like this, which we simply add a new row to each month?
'2017-01'!A$1:C$1000
'2017-02'!A$1:C$1000
'2017-03'!A$1:C$1000
'2017-04'!A$1:C$1000
'2017-05'!A$1:C$1000