How to Fix Excel Remove Duplicates Not Working as Expected
Question details
The user applied the Remove Duplicates feature across multiple columns, but the final output does not correctly reflect the expected data cleanup.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Cleaning up a dataset by identifying and removing redundant rows based on criteria in specific columns.
- Observed behavior
- The built-in Remove Duplicates function fails to accurately identify and delete the duplicate entries across the selected columns, leaving unwanted duplicate rows in the dataset.
Before proceeding with any data cleanup tasks, ensure you create a copy of your original dataset or worksheet to prevent accidental data loss while testing different duplicate removal criteria.
Standardize Data Types and Clean Hidden Characters
Inconsistencies such as hidden trailing spaces or numbers stored as text are the most common reasons the tool fails to recognize exact duplicates.
Excel's Remove Duplicates feature strictly evaluates the exact values stored in the cells. If one cell contains trailing spaces or is formatted as a different data type (e.g., text vs. number), Excel treats them as unique values.
Insert a helper column and use the =TRIM(A2) function to strip out invisible leading and trailing spaces from your text data.
Highlight the problematic column, go to the 'Data' tab, click 'Text to Columns', and immediately click 'Finish' to convert numbers stored as text back to standard number formats.
Select your entire dataset, click 'Remove Duplicates', and ensure the 'My data has headers' checkbox is accurately checked or unchecked depending on your selection.

Use Conditional Formatting to Identify Missing Patterns
Visually highlighting duplicates helps you manually inspect why certain rows are being skipped by the built-in removal tool.
Easily Remove Duplicates Using WPS Spreadsheet
WPS Spreadsheet provides a highly intuitive and accurate Remove Duplicates tool. It is fully compatible with Microsoft Excel files and offers advanced data highlighting features to help you clean your data effortlessly.
- 1. Open your dataset: Launch WPS Spreadsheet and open your workbook.
- 2. Select the data range: Highlight the data table or columns you want to clean.
- 3. Access duplicate tools: Navigate to the 'Data' tab on the top ribbon.
- 4. Execute removal: Click 'Highlight Duplicates' to preview anomalies, or click 'Remove Duplicates', select your target columns, and hit 'OK' to instantly clean the dataset.

Frequently Asked Questions
Does Excel's Remove Duplicates tool consider formatting differences?
No, the Remove Duplicates tool only evaluates the actual cell values. Cell formatting, such as font colors, bold text, or number format displays, does not affect duplicate detection. However, underlying data type mismatches (like a number stored as text) will cause identical-looking values to be treated as unique.
How can I remove duplicates based on one column while keeping the rest of the row?
Select your entire data table, click 'Remove Duplicates', and then click 'Unselect All'. Finally, check only the box next to the specific column you want to evaluate. The tool will delete the entire row based on the duplicates found in that single chosen column.
Why are exact text matches not being recognized as duplicates?
This is almost always caused by invisible characters, such as trailing spaces or non-breaking spaces copied from web pages. Using the TRIM() or CLEAN() functions on the text before applying the Remove Duplicates tool will usually resolve this issue.




