Fix: Excel Remove Duplicates Not Working (3 Solutions)

Reasons Why Excel Is Not Recognizing Duplicates

  • Digits After Decimal:

For example, 5 and 5.00 are the same. But MS Excel counts them as two unique numbers as their formats are not the same.

  • Trailing/ Leading Spaces:

“Head”, “ Head ”, and “Head “ are the same but Excel considers the extra trailing or leading spaces and will count these three words as three unique cell contents.

  • Different Formats:

If you enter 672 in Text format and enter it as Number format in another cell, Excel recognizes it as a unique value.

  • Incorrect Ranges:

Excel will not recognize duplicates when the data range is not selected properly.

  • Incorrect $ Signs:

If you type the $ sign before a number or set the sign by clicking the currency command from the Number section of the Excel ribbon, Excel won’t count it as duplicates.


Solution 1 – Delete Extra Spaces Using Trim Function When Remove Duplicates Command Is Not Working in Excel

In the following sample dataset, when we try to remove the duplicate regions using the Remove Duplicates command from the Data ribbon, we are not getting the required result.

By Removing Extra Spaces Using Trim Function to Fix Remove Duplicates Not Working Problem

The reason is due to some extra space.

By Removing Extra Spaces Using Trim Function to Fix Remove Duplicates Not Working Problem

Solution:

Add another column and use the TRIM function in Cell D5.

By Removing Extra Spaces Using Trim Function to Fix Remove Duplicates Not Working Problem

Use the Fill Handle tool for the remaining cells.

By Removing Extra Spaces Using Trim Function to Fix Remove Duplicates Not Working Problem

All the values are without extra spaces.

The result will be displayed as shown in the following image.


Solution 2 – Convert Multiple Rows/Columns to Single Rows/Columns When Remove Duplicates Command Is Not Working in Excel

The Remove Duplicates command doesn’t work for multiple rows/columns. It works only on a single row or column.

By Converting Multiple Rows/Columns to Single Rows/Columns to Fix Remove Duplicates Not Working Problem

Solution:

Copy the data of the two columns in one column by using copy-paste option. We have added a new column,  ‘Combined’.

By Converting Multiple Rows/Columns to Single Rows/Columns to Fix Remove Duplicates Not Working Problem

The Remove Duplicates command will work.

By Converting Multiple Rows/Columns to Single Rows/Columns to Fix Remove Duplicates Not Working Problem

Read More: How to Remove Both Duplicates in Excel


Solution 3 – Use Round Function to Fix Duplicate Number Problem

Remove duplicates will not work if the number of digits after the decimal are not the same.

Use Round Function to Fix Duplicate Number Problem

The Remove Duplicates command could not find a duplicate because the decimals are not the same.

Use Round Function to Fix Duplicate Number Problem

Solution:

Used the ROUND function to remove the third digit after the decimal.

Use Round Function to Fix Duplicate Number Problem

Use the Fill Handle tool for the remaining cells.

All the prices have two digits after the decimal.

The Remove Duplicates command have removed duplicates.

Read More: How to Remove Duplicate Names in Excel


Download Practice Workbook

 

Related Articles


<< Go Back to Remove Duplicates in Excel | Duplicates in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Sourov Hossain Mithun
Md. Sourov Hossain Mithun

Md. Sourov Hossain Mithun, an Excel and VBA Content Developer at Softeko's ExcelDemy project, joined in October 2021. Holding a Naval Architecture & Marine Engineering degree from BUET, Mithun showcases expertise during his two-year tenure. With over 200 published articles on Excel topics, he earned a promotion to Team Leader, excelling in leading diverse teams. Mithun's passion extends to Advanced Excel, Excel VBA, Data Analysis, and Python programming, contributing significantly to the innovative and dynamic environment of ExcelDemy... Read Full Bio

2 Comments
  1. There’s one more you didn’t account for. I took me a while to figure out that not all “spaces” are created equal. Excel looks at ASCII character 160 as different than character 32. To anyone else, they both look the same.

    • Thank you very much for your valuable comment. You are right. The ASCII character 160 is different than character 32. If you have any cell containing the ASCII character 160 non-breaking space then the TRIM function described in method 1 won’t work.
      However, you can use the combination of the SUBSTITUTE and CHAR functions then. Suppose you have a value in cell A1 of your dataset containing the ASCII character 160 non-breaking space. Then you can use the following formula to remove unwanted spaces-

      =SUBSTITUTE(A1,CHAR(160), “”)

      After using this formula you can apply the Remove Duplicates button.

      Regards
      Sajid Ahmed
      ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo