Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conditional Formatting Rules in Excel
  • Get column index in Excel Table
  • How to calculate current stock or inventory in Excel
  • Everything about Charts in Excel
  • Understanding Anova in Excel

References

  • Two-way lookup with VLOOKUP in Excel
  • How to get last column number in range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Vlookup Examples in Excel
  • Perform case-sensitive Lookup in Excel

Data Validations

  • Excel Data validation date in specific year
  • Excel Data validation number multiple 100
  • Excel Data validation allow weekday only
  • Excel Data validation only dates between
  • How To Create Drop-down List in Excel

3D SUMIF for multiple worksheets in Excel

by

This tutorial shows how to 3D SUMIF for multiple worksheets in Excel using the example below;

Formula

=SUMPRODUCT(SUMIF(INDIRECT
("'"&sheets&"'!"&"range"),criteria,
INDIRECT("'"&sheets&"'!"&"sumrange")))

Explanation

To conditionally sum identical ranges that exist in separate worksheets, all in one formula, you can do so with the SUMIF function + INDIRECT, wrapped in SUMPRODUCT. In the example, the formula looks like this:

=SUMPRODUCT(SUMIF(INDIRECT
("'"&sheets&"'!"&"D4:D5"),B9,
INDIRECT("'"&sheets&"'!"&"E4:E5")))

The data on each of the three sheets being processed looks like this:

Explanation

First of all, note that you can’t use SUMIFs with a “normal” 3D reference like this:

Worked Example:   Sum if begins with in Excel

Sheet1:Sheet3!D4:D5
This is the standard “3D syntax” but if you try to use it with SUMIF, you’ll get a #VALUE error. So, to workaround this problem you can use a named range “sheets” that lists each sheet (worksheet tab) that you want to include. However, to build references that Excel will interpret correctly, we need to concatenate the sheet names to the ranges we need to work with and then use the INDIRECT to get Excel to recognize them correctly.

Worked Example:   How to abbreviate names or words in Excel

Also, because the named range “sheets” contains multiple values (i.e. its an array), the result of SUMIF in this case is also an array (sometimes called a “resultant array). So, we use SUMPRODUCT to handle it, since SUMPRODUCT has the ability to handle arrays natively without requiring Ctrl-Shift-Enter, like many other array formulas.

Worked Example:   Count if row meets internal criteria in Excel

Alternatively;

The example above is somewhat complicated. Another way to handle this problem is to do a “local” conditional sum on each sheet, then use a regular 3D sum to add up each value on the summary tab.

To do this, add a SUMIF formula to each sheet sheet that uses a criteria cell on the summary sheet. Then when you change the criteria, all linked SUMIF formulas will update.

Post navigation

Previous Post:

How to use Excel FALSE Function

Next Post:

Large with criteria in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Not Equal To ‘<>‘ operator in Excel
  • IF with boolean logic in Excel

Date Time

  • Convert Excel time to decimal minutes
  • Get days, months, and years between dates in Excel
  • Convert Unix time stamp to Excel date
  • Get first day of previous month in Excel
  • DAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers at uneven intervals in Excel
  • Group numbers with VLOOKUP in Excel
  • How to randomly assign people to groups in Excel

General

  • How to get original number from percent change in Excel
  • Mark Workbook as Final in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Convert column number to letter in Excel
  • Basic numeric sort formula in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning