Pivot Table Issues

Compare Large Pivot Tables in Two Excel Workbooks

Chanuka GeekiyanageChanuka Geekiyanage Nov 18, 2026 870 views

Question details

Compare large pivot tables in two workbooks and identify differences in their summarized values.

Compare Large Pivot Tables in Two Excel Workbooks
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.
Before you start

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.

Solution 1Recommended

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.

1
Copy the pivot values

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.

2
Prepare the comparison tables

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.

3
Load both tables

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.

4
Merge the 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.

5
Inspect differences

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 exported pivot values with Power Query
Check numeric precision: Displayed values may be rounded. Compare values at the precision relevant to your analysis, and distinguish missing rows from blank or zero values.
Compare pivot summaries

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. 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. 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. 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. 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.
Compare exported pivot-table values with a formulaOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with a free office suite
QA img-9

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.