How to Create a Dynamic SUMIFS Total Across Multiple Excel Tables
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.

- 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.
Ensure all your source data ranges are formatted as official Excel Tables (Insert > Table) with distinct, identifiable names before attempting to combine them.
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.
Click anywhere inside your first Excel table, navigate to the 'Data' tab, and select 'From Table/Range' to open the Power Query Editor.
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.
Click 'Close & Load To...', choose 'Table', and place it on a new worksheet. You now have a single, unified table.
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.

Use VSTACK and SUMIFS for Real-Time Calculation
If you must avoid manual data refresh, combine tables dynamically in real-time using the modern VSTACK function wrapped inside a SUMIFS formula.
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. Download and Install: Visit the official WPS website to download and install the free WPS Office suite on your device.
- 2. Open Your Excel File: Launch WPS Spreadsheet and seamlessly open your existing .xlsx workbook without losing formatting.
- 3. Calculate and Consolidate: Utilize built-in advanced formulas like SUMIFS and dynamic arrays to calculate your multi-table totals instantly.

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.




