Compare Large Pivot Tables in Two Excel Workbooks
Question details
Compare large pivot tables in two workbooks and identify differences in their summarized values.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user needs to investigate differences between large pivot tables, potentially without access to their source data.
- Observed behavior
- Manually comparing copied pivot-table values is difficult when the tables are large.
Check that both pivot tables use the same filters, row and column fields, and aggregation methods. Identify the fields that uniquely identify each summary value, and exclude subtotals and grand totals from the comparison.
Compare exported pivot values with Power Query
Use this method when the source data is unavailable and you need to compare the displayed summaries.
Arrange each export as a flat table with matching key columns and value columns. Each combination of keys should identify one summary row; include the measure name as a key if there are multiple measures.
In each workbook, copy the pivot-table results and use Paste Special > Values on a separate worksheet. Remove totals and make sure the tables have clear column headers.
Arrange both exports with the same key and value columns. Select each range and choose Insert > Table, then place both tables in a workbook where you can compare them.
Select each table and choose Data > From Table/Range to open it in Power Query. Use Close & Load To to create connections for both queries.
Open one query from Data > Queries & Connections, then choose Home > Merge Queries. Select the matching key columns in both tables in the same order and choose Full Outer as the join type.
Expand the merged column to show the second table's keys and values. Check for missing keys and unequal values, then choose Close & Load to review the results in a worksheet.

Compare the underlying source tables
Use the source tables for a more thorough investigation when they are available.
Compare Pivot Table Values in WPS Spreadsheets
Copy the pivot summaries into WPS Spreadsheets and use COUNTIFS to find key-and-value combinations missing from the other table.
- 1. Open the workbooks: Open both Excel workbooks in WPS Spreadsheets and copy each pivot-table result into a separate sheet in one workbook using Paste Special > Values.
- 2. Arrange the data: On Sheet1 and Sheet2, put a unique comparison key in column A and the corresponding summary value in column B. Remove totals and include all relevant identifying fields in the key.
- 3. Enter a comparison formula: In Sheet1 cell C2, enter =IF(COUNTIFS(Sheet2!$A$2:$A$10000,A2,Sheet2!$B$2:$B$10000,B2)=0,"Missing or changed","Match") and fill it down. Extend the ranges if your data goes beyond row 10000.
- 4. Check both directions: Use Data > Filter to inspect rows marked Missing or changed. Repeat the formula on Sheet2, referencing Sheet1, to find rows that appear only in the second table.

Frequently Asked Questions
Can I compare pivot tables without their source data?
Yes. Copy each pivot table with Paste Special > Values, arrange matching key and value columns, and compare them with Power Query or formulas. This compares the summaries, not the underlying records.
Why do two pivot tables show different totals for the same data?
Check the filters, row and column fields, date grouping, and value aggregation in each pivot table. A Sum in one table and a Count in the other, for example, will produce different results.
How can I find rows that appear in only one pivot table?
In Power Query, merge the exported tables on their identifying columns using a Full Outer join. Expand the merged result and inspect rows where a key is missing from either side.
Can a formula compare pivot tables with multiple value fields?
Yes. Include each identifying field and value field as criteria in COUNTIFS, or arrange the export so the measure name is part of a unique key and its result is in one value column.




