Pivot Table Issues

Compare Excel Pivot Table Refreshes and Find Changed Rows

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 868 views

Question details

Identify rows and values that changed between two refreshes of an Excel Power Pivot table.

Compare Excel Pivot Table Refreshes and Identify Changed Rows
Product
Microsoft Excel Power Pivot
Device & OS
not provided
Scenario
A user wants to compare a large PivotTable's results before and after refreshing its data.
Observed behavior
The refreshed PivotTable does not automatically retain a row-by-row history of previous results.
Before you start

Choose a stable, unique key for each result row and the numeric value you want to compare. Configure the PivotTable so row labels are visible, and exclude subtotal and grand total rows from the snapshots.

Solution 1Recommended

Compare Before-and-After PivotTable Snapshots

Use saved values and matching keys to identify added, removed, and changed results after a refresh.

The snapshots must contain one row per unique key. If a result is identified by several fields, create a consistent composite key from those fields in both snapshots.

This method compares displayed PivotTable results, which may be aggregated; it does not necessarily identify changes to individual source records.

1
Save the old results

Before refreshing, copy the PivotTable results to a new worksheet and use Home > Paste > Values. Keep a Key column and a numeric Amount column, then select the range and choose Insert > Table. Name the table OldSnapshot on the Table Design tab.

2
Refresh and save the new results

Select Data > Refresh All, then copy the refreshed results to another worksheet using Home > Paste > Values. Create a table with the same Key and Amount column names and name it NewSnapshot on the Table Design tab.

3
List all keys

On a comparison sheet, add the headers Key, Old Amount, New Amount, Change, and Status in cells A1:E1. In A2, enter =UNIQUE(VSTACK(OldSnapshot[Key],NewSnapshot[Key])) to list keys from both snapshots. This formula requires an Excel version that supports UNIQUE and VSTACK.

4
Calculate the differences

In B2, enter =IFNA(XLOOKUP(A2,OldSnapshot[Key],OldSnapshot[Amount]),0). In C2, enter =IFNA(XLOOKUP(A2,NewSnapshot[Key],NewSnapshot[Amount]),0). In D2, enter =C2-B2. Fill these formulas down alongside the key list.

5
Label and review changes

In E2, enter =IF(COUNTIF(OldSnapshot[Key],A2)=0,"Added",IF(COUNTIF(NewSnapshot[Key],A2)=0,"Removed",IF(D2<>0,"Changed","Unchanged"))) and fill it down. Select the comparison range and use Data > Filter to show Added, Removed, or Changed rows.

Compare Before-and-After PivotTable Snapshots
How missing rows are treated: The formulas treat a missing row as zero when calculating the change. Added and removed rows are labeled separately so they are not confused with existing zero values.
Free Microsoft Office alternative

Review Spreadsheet Snapshots with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar spreadsheet interface and Microsoft Excel format compatibility for moving existing workbooks. You can open exported snapshot values for review, but WPS does not provide Excel Power Pivot refresh history or fix its refresh behavior.

Review before-and-after snapshot values in a spreadsheetOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar interface to work with existing spreadsheetsFree and lightweight for everyday Office tasks
microsoft office alternative - wps office

Frequently Asked Questions

Can Excel show what changed in a PivotTable after a refresh?

Excel does not automatically retain a row-by-row change history for a refreshed PivotTable. Save its results as values before and after the refresh, then compare the snapshots using matching keys.

What if rows are added or removed after the refresh?

Create a combined list of keys from both snapshots, then use COUNTIF to check whether each key exists in the old and new tables. Label keys found only in the new table as added and those found only in the old table as removed.

What should I do if a single column does not uniquely identify a row?

Create a composite key from the fields that together identify each result row. Apply the same construction to both snapshots and check that each key appears only once.

Can I compare snapshots without UNIQUE or VSTACK?

Copy the Key columns from both snapshots into one column on the comparison sheet, select that column, and choose Data > Remove Duplicates. You can then use lookup formulas to retrieve and compare the amounts.