How to Fix Duplicate Items in an Excel PivotTable Filter
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.

- 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.
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.
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.
Right-click anywhere inside your PivotTable and select 'PivotTable Options' from the context menu.
In the PivotTable Options dialog box, click on the 'Data' tab located at the top.
Locate the dropdown menu labeled 'Number of items to retain per field' and change the selection from 'Automatic' to 'None'.
Click 'OK' to apply the changes. Finally, right-click the PivotTable again and choose 'Refresh' to clear the duplicates from your filter drop-down.

Remove Hidden Characters from Source Data
If adjusting the PivotTable settings doesn't work, the source data likely contains invisible characters like trailing spaces, non-breaking spaces, or line breaks that cause Excel to read identical words as distinct entries.
Standardize Data Formatting using Power Query
Power Query provides advanced data transformation tools that can eliminate formatting discrepancies and inconsistent data types that standard formulas might miss.
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. Open file in WPS: Launch WPS Spreadsheet and open your existing Excel workbook containing the PivotTable.
- 2. Open PivotTable Options: Right-click the PivotTable and select 'PivotTable Options'.
- 3. Adjust data retention: Go to the 'Data' tab, change 'Number of items to retain per field' to 'None', and click 'OK'.
- 4. Refresh data: Right-click the PivotTable and click 'Refresh' to update your filter lists and remove the duplicates.

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.




