The problem is that SUMIFS, COUNTIFS, AVERAGEIFS, etc.

are in agroup of functionsthat do not support 3D references.

The formula in F5 is:

Notice we areconcatenatingthe sheet names to the ranges we need to work with.

Example of data structure on Sheet1

To coerce these values into valid cell references we use theINDIRECT function.

INDIRECT converts the text values to valid references and returns the result to the SUMIF function for therangeandsum_rangearguments.

Because thenamed range"sheets" containsthreevalues, SUMIF actually runsthreetimes, one for each reference.

Example of data structure on Sheet1

This number is the total number of hours logged to the Alpha project in all three worksheets.

InLegacy Excel,SUMPRODUCT is used frequentlybecause it can handlearraysnatively without requiring Ctrl-Shift-Enter.

Criteria can be applied to dates, numbers, and text.

Example of data structure on Sheet1

INDIRECT is useful when you want to assemble a text value that can be used as a valid reference.

How to create 3D references

Example of data structure on Sheet1

Example of data structure on Sheet1

Excel formula: Sum across multiple worksheets

Excel formula: Lookup with variable sheet name

Excel formula: VLOOKUP with variable table array

Excel formula: Sum if with multiple ranges

Excel SUMPRODUCT function

Excel SUMIF function

Excel INDIRECT function

Article image

Example of data structure on Sheet1