Pivot Table Issues

How to Fix Duplicate Items in an Excel PivotTable Filter

Adam DavisAdam Davis Nov 10, 2026 869 views

Question details

The user needs to remove duplicate entries that are appearing in their PivotTable filter drop-down menus, despite the source data appearing to have no duplicates.

Fix Duplicate Items in an Excel PivotTable Filter
Product
Excel
Device & OS
not provided
Scenario
Filtering aggregated data using an Excel PivotTable.
Observed behavior
The PivotTable filter displays multiple identical entries for a single category, which text-cleaning functions fail to merge automatically, often due to cached memory or invisible formatting characters.
Before you start

Verify that your PivotTable is pointing to the correct data source range and take note of the exact column where the duplicate values are appearing.

Solution 1Recommended

Disable Retained Items in PivotTable Options

By default, PivotTables cache old data to improve performance. Changing the retained items setting forces the PivotTable to drop deleted or modified source data items from the filter list.

When you modify or delete records in your source data, Excel often remembers the old values and keeps them in the PivotTable filter. Setting the item retention to 'None' prevents these stale cached items from appearing.

1
Access PivotTable Options

Right-click anywhere inside your PivotTable and select 'PivotTable Options' from the context menu.

2
Navigate to the Data tab

In the PivotTable Options dialog box, click on the 'Data' tab located at the top.

3
Adjust item retention settings

Locate the dropdown menu labeled 'Number of items to retain per field' and change the selection from 'Automatic' to 'None'.

4
Refresh the PivotTable

Click 'OK' to apply the changes. Finally, right-click the PivotTable again and choose 'Refresh' to clear the duplicates from your filter drop-down.

Disable Retained Items in PivotTable Options
Cache Cleared: If the duplicates were caused by deleted historical data, this refresh will instantly merge and clean up your filter list.
Manage PivotTables Efficiently

Fix PivotTable Duplicates Easily with WPS Spreadsheet

WPS Spreadsheet offers a powerful, intuitive PivotTable feature. You can effortlessly manage data caches, clean duplicate entries, and analyze your datasets with 100% compatibility with Microsoft Excel files, entirely for free.

  1. 1. Open file in WPS: Launch WPS Spreadsheet and open your existing Excel workbook containing the PivotTable.
  2. 2. Open PivotTable Options: Right-click the PivotTable and select 'PivotTable Options'.
  3. 3. Adjust data retention: Go to the 'Data' tab, change 'Number of items to retain per field' to 'None', and click 'OK'.
  4. 4. Refresh data: Right-click the PivotTable and click 'Refresh' to update your filter lists and remove the duplicates.
Fully compatible with Microsoft Excel (.xlsx, .xls) formats and PivotTable structures.Intuitive PivotTable options to easily clear data caches and prevent duplicate filters.Built-in text cleaning functions like TRIM and CLEAN to sanitize source data quickly.Free, lightweight, and fast-loading, making it perfect for handling large datasets.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PivotTable show items that I deleted from the source data?

PivotTables create a background cache of your source data to improve calculation speeds. By default, this cache retains historical items even after they are removed or modified in the source. You can stop this by changing the 'Number of items to retain per field' to 'None' within the PivotTable Options.

I used the TRIM function, but there are still duplicates in my PivotTable filter. What's wrong?

The TRIM function removes standard spaces but cannot remove non-breaking spaces (often imported from web data) or line breaks. You should use the SUBSTITUTE function to replace CHAR(160) (non-breaking space) with a regular space before applying the TRIM function.

Does text casing cause duplicate filter items in PivotTables?

Yes. In certain data models, variations in text casing (like 'Apple' vs. 'apple') can be treated as distinct items. Standardizing your text casing by using the UPPER, LOWER, or PROPER functions in your source data can resolve case-sensitivity duplicates.

How do I completely clear the PivotTable cache and start fresh?

If adjusting the retained items setting does not clear the stubborn duplicates, you can flush the cache manually. Change your PivotTable's data source range to a single empty cell, refresh the PivotTable, and then change the data source back to your actual, cleaned data range.