Pivot tables don't automatically update when you change the source data — you have to refresh them manually, and duplicates in your data will carry through to the refreshed table

When you change numbers or entries in the spreadsheet behind a pivot table, the pivot table itself stays frozen until you tell it to refresh. Once you do refresh it, any duplicate rows in your source data will appear in the refreshed pivot table exactly as they are in the source. If you want different data to show up in the pivot table after a refresh, you need to change the actual values in the spreadsheet first, or remove the duplicates before the refresh happens.

The process differs slightly depending on whether you're using Excel, Google Sheets, or another spreadsheet program, but the core idea is the same: find the source data, change what needs changing, remove duplicates if that's your goal, then refresh the pivot table to pull in the new information.

Key Takeaways

  • Pivot tables show whatever data exists in the source range, including duplicates, so removing duplicates from the original spreadsheet before you refresh will prevent them from appearing in the refreshed table.
  • In Excel, right-click the pivot table and select "Refresh" to pull in changes; in Google Sheets, click the refresh icon in the toolbar after selecting the pivot table.
  • If you've already refreshed and duplicates appeared, you can delete rows from the source data and refresh again, or you can manually remove duplicate entries from the pivot table itself.
  • Changing a single value in the source data requires a refresh before that change shows in the pivot table — the table does not update on its own.

Refreshing a pivot table after you change the source data

In Excel, click anywhere inside the pivot table, then right-click and select "Refresh" from the menu. You can also go to the PivotTable Analyze tab (or PivotTable Tools in older versions) and click the Refresh button. The table will pull in any new rows, deleted rows, or changed values from the source data.

In Google Sheets, click the pivot table, then look for the refresh icon (a circular arrow) in the toolbar at the top. Click it, and the pivot table updates. If you don't see the icon, make sure you've selected the pivot table itself and not just a cell within it.

After you refresh, the pivot table will include any duplicate rows that exist in your source data. If duplicates appear that you don't want, the next step is to remove them from the source data and refresh again.

Removing duplicates from the source data before refresh

The cleanest approach is to remove duplicates from your original data before you refresh the pivot table. In Excel, select all the data in your source range (not the pivot table), go to the Data tab, and click "Remove Duplicates." Excel will show you which columns to check for duplicates — usually you want all of them selected. Click OK, and Excel removes any rows that are exact matches to earlier rows.

In Google Sheets, select your source data, go to Data menu, and click "Remove duplicates." A sidebar appears asking which columns to check. Select the columns that define a duplicate (often all of them), and click "Remove duplicates." Google Sheets will delete the duplicate rows and show you how many it removed.

After you remove duplicates from the source data, refresh the pivot table using the method above. The refreshed table will no longer include those duplicate rows because they no longer exist in the source.

Changing individual values and refreshing the pivot table

If you need to change a single number or text entry in the source data, click on that cell in the original spreadsheet and type the new value. The pivot table will not automatically update — you must manually refresh it to see the change reflected in the summary.

For example, if your source data has a row with "Product A" and a quantity of 50, and you change the quantity to 75, the pivot table will still show 50 until you refresh. After you refresh, it will recalculate and show 75 in the relevant summary cell.

This is why it's important to make all your data corrections in the source spreadsheet first, then refresh once, rather than changing data and refreshing multiple times.

Handling duplicates that already appear in a refreshed pivot table

If you've already refreshed and duplicates are now showing in the pivot table, you have two options: remove them from the source data and refresh again, or manually delete the duplicate rows from the pivot table itself.

To remove them from the source and refresh again, go back to your original data, use the remove duplicates feature described above, and then refresh the pivot table. This is the more reliable method because it ensures the source data is clean.

To manually delete duplicate rows from the pivot table, click on the row you want to remove and delete it. Keep in mind that if you refresh the pivot table again later, those manually deleted rows will reappear if the duplicates are still in the source data. Manual deletion is a temporary fix; removing duplicates from the source is permanent.

Changing the pivot table's data range to exclude duplicates

If you want to prevent duplicates from ever appearing in the pivot table, you can change the data range the pivot table pulls from. In Excel, right-click the pivot table, select "PivotTable Options," and look for the data range setting. You can narrow the range to exclude rows you know are duplicates.

In Google Sheets, click the pivot table, then click the three-dot menu and select "Edit pivot table." At the top, you'll see the data range listed. Click on it to change which cells the pivot table reads from. You can select a smaller range that excludes duplicate rows.

This approach works if you know exactly which rows are duplicates and can exclude them by adjusting the range. For large datasets, removing duplicates from the source data is usually faster.

Why pivot tables don't update automatically

Pivot tables are summaries built from a snapshot of your data at the time you created or last refreshed them. They don't watch your source data for changes the way a formula does. This design choice makes pivot tables faster and more stable — they don't recalculate every time you type something in the spreadsheet.

The trade-off is that you have to remember to refresh manually. If you change data and forget to refresh, the pivot table will show outdated numbers. This is why it's good practice to refresh right before you share or print a pivot table, to make sure it reflects your current data.

Frequently Asked Questions

Do I have to remove duplicates before I create the pivot table, or can I do it after?

You can do it either way. If you remove duplicates from the source data before you create the pivot table, the table will never include them. If you remove duplicates after the pivot table exists, you'll need to refresh the pivot table to see the change. Removing duplicates before creation is slightly cleaner because you avoid the extra refresh step.

If I delete a row from the pivot table, does it delete the row from my source data?

No. Deleting a row from the pivot table only removes it from the summary — it does not touch the source data. If you refresh the pivot table again, that row will reappear if it still exists in the source. To permanently remove a row, delete it from the original spreadsheet.

Can I undo a refresh if I accidentally refreshed with bad data?

Yes. Use Ctrl+Z (Windows) or Command+Z (Mac) immediately after the refresh to undo it. The pivot table will revert to its previous state. If you've made other changes since the refresh, undo will step back through all of them, so you may need to undo multiple times.

What if my pivot table is connected to an external data source instead of a spreadsheet range?

The refresh process is the same — right-click and refresh in Excel, or click the refresh icon in Google Sheets. However, you cannot remove duplicates from an external source the same way. You would need to clean the data in the external database or file, or filter the pivot table to hide duplicate entries instead of removing them.