A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
3-D sheet ranges such as Sheet1:Sheet25 cannot be used inside SUMPRODUCT, because 3‑D references are only supported by a limited set of functions (for example SUM, AVERAGE, MIN, MAX, etc.) and are not valid in array formulas like SUMPRODUCT.
From the documentation:
- 3‑D references (e.g.
=SUM(Sheet2:Sheet13!B5)) can be used with functions such asSUM,AVERAGE,COUNT,MAX,MIN,PRODUCT,STDEV.P,STDEV.S,VAR.P,VAR.S, etc. - 3‑D references cannot be used in array formulas.
SUMPRODUCT is an array-based function, so a construct like:
=SUMPRODUCT(Sheet1:Sheet25!$B$13:$F$45*...)
is not supported.
Because of this limitation, the approach of repeating SUMPRODUCT for each sheet and summing the results is the supported method when staying purely in worksheet formulas, for example:
=SUM(
SUMPRODUCT(Sheet1!$B$13:$F$45*(Sheet1!$B$12:$F$12=B$12)*(Sheet1!$A$13:$A$45=$A13)),
SUMPRODUCT(Sheet2!$B$13:$F$45*(Sheet2!$B$12:$F$12=B$12)*(Sheet2!$A$13:$A$45=$A13)),
...
)
There is no supported way, using only standard worksheet functions, to combine SUMPRODUCT with a Sheet1:Sheet25 3‑D sheet range into a single compact formula.
References: