Power Query Problems

How to Create a Dynamic SUMIFS Total Across Multiple Excel Tables

John WilsonJohn Wilson Oct 28, 2026 870 views

Question details

Find a method to total values from multiple Excel tables using dynamic array criteria without manually filling formulas down or relying on complex workarounds.

How to Create a Dynamic SUMIFS Total Across Multiple Excel Tables
Product
Excel
Device & OS
not provided
Scenario
Consolidating and summing data from multiple structured tables using specific criteria, aiming for automated updates when new data is added.
Observed behavior
Attempting to use SUMIFS combined with INDIRECT for multiple table references fails to spill correctly as a dynamic array, creating maintenance issues.
Before you start

Ensure all your source data ranges are formatted as official Excel Tables (Insert > Table) with distinct, identifiable names before attempting to combine them.

Solution 1Recommended

Consolidate Tables Using Power Query

Use Power Query to reliably append multiple tables into a single data source, making SUMIFS calculations straightforward and stable.

While complex array formulas can theoretically sum across tables, they are prone to breaking and resource-intensive. Power Query provides a robust, maintainable solution to merge tables into a unified dataset.

1
Load Tables to Power Query

Click anywhere inside your first Excel table, navigate to the 'Data' tab, and select 'From Table/Range' to open the Power Query Editor.

2
Append Additional Tables

In the Power Query Editor, click 'Append Queries' on the Home tab. Select 'Three or more tables' and add your other tables to the list to merge them vertically.

3
Load to a Consolidated Table

Click 'Close & Load To...', choose 'Table', and place it on a new worksheet. You now have a single, unified table.

4
Apply Your SUMIFS Formula

Write a standard SUMIFS formula against this newly consolidated table. When source data changes, right-click the consolidated table and select 'Refresh' to update the totals.

Consolidate Tables Using Power Query
Reliable Consolidation: Power Query safely handles varying table sizes and prevents the calculation errors often caused by complex INDIRECT formulas.
Free Microsoft Office alternative

Try WPS Office for Seamless Data Consolidation

Handling complex array formulas and large datasets across multiple tables can be overwhelming. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office, making data consolidation and complex formulas easier without heavy resource usage.

  1. 1. Download and Install: Visit the official WPS website to download and install the free WPS Office suite on your device.
  2. 2. Open Your Excel File: Launch WPS Spreadsheet and seamlessly open your existing .xlsx workbook without losing formatting.
  3. 3. Calculate and Consolidate: Utilize built-in advanced formulas like SUMIFS and dynamic arrays to calculate your multi-table totals instantly.
Free to use with a familiar, user-friendly interface.Fully compatible with Microsoft Excel formats (.xlsx, .xls) and complex formulas.Supports modern dynamic array functions for real-time calculations.Lightweight software that runs smoothly on standard devices without lagging.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SUMIFS with INDIRECT return a #VALUE! error when using multiple tables?

The INDIRECT function expects a single text string representing a valid reference. When passed an array of table names to evaluate across multiple tables dynamically, it fails to spill correctly, resulting in a #VALUE! error.

Do I have to refresh Power Query every time my source data changes?

Yes, Power Query requires a manual or scheduled refresh to pull the latest data into the consolidated table. You can easily do this by right-clicking anywhere in the loaded table and selecting 'Refresh', or by setting it to refresh upon opening the file under Data > Connections.

Can I consolidate tables without Power Query to avoid manual refreshing?

Yes. In modern spreadsheet applications, you can use the VSTACK function to dynamically append multiple tables into a single virtual range directly within your formula, which updates in real-time without manual refreshes.

Will my Power Query setup break if I share my workbook with others?

As long as all your source tables are located within the same workbook as the Power Query connection, the queries will remain intact and function normally for other users when they open the file on their machines.