you may improve your spreadsheet’s readability by removing unnecessary duplicate values. If you know you don’t need them, why notuse Microsoft Excelto find and remove them? If you want to get rid of them, we can show you how. Here’s how to remove duplicates in Excel.
Difficulty
What You Need
Microsoft Excel
Before removing those duplicates: Here’s how to find them
Before deleting those duplicate values from your Excel spreadsheet outright, you’ll need to find them first. Here’s how to do that:
Step 1:Highlight all the cells you want Excel to scan for duplicates. Then select theHometab from theRibbon Menuat the top of the screen.
Step 2:On theHometab, click onConditional Formatting. From the menu that appears selectHighlight Cells Rules.
Step 3:Then chooseDuplicate Values. In the dialog box that appears, click on the drop-down menu after the phraseValues Withand choose your desired color formatting for the cells that are deemed to be duplicates.
Step 4:ClickOK. All of the duplicates from the selected cells should have been detected and marked with your chosen color formatting. You should now be able to easily see which values in your spreadsheet are duplicates.
How to remove duplicates in Excel
Now that you know which values in your spreadsheets are duplicates, you can remove them. You could simplyhide the columns, but permanent deletion may be preferable. Here’s how:
Note: Removing duplicates in Excel usually involves permanently deleting them, so you may want to make another copy of the original version of this data before proceeding with removing the duplicates.
Step 1:Highlight the group of cells that contains the duplicate values you’d like to delete.
Step 2:Click on theDatatab on theRibbon Menuat the top of the screen. Then navigate to theData Toolssection of theDatatab menu.
Step 3:In theData Toolssection, click on theRemove Duplicatesbutton. (It looks like three blue and white cells with a red X.)
Step 4:In theRemove Duplicatesdialog box that appears, and in theColumnssection, check any boxes next to the spreadsheet columns where you’d like the duplicates to be deleted. Uncheck the ones you’d like left alone.
Step 5:Then clickOK.
Excel will then scan the selected columns for duplicates and remove them. When it’s done, a dialog box will pop up notifying you how many duplicates were removed and how many unique values were left alone. It may also say that it couldn’t find any duplicate values to remove. If that’s the case, scroll to the next section.
Troubleshooting: What if Excel doesn’t remove all the duplicates?
Sometimes,Exceldoesn’t remove all of the duplicates that are visible to us ina spreadsheet. This is often because Excel’s Remove Duplicates tool may consider two duplicate values to actually be unique values instead, usually because of some underlying difference in formatting or another not-so-visible-to-us difference. If you’re running into this issue, here are a couple of possible fixes you may want to consider:
Make sure all values are formatted the same.The Remove Duplicates tool doesn’t work on numbers written in different formats. Just because the Conditional Formatting tool was able to correctly identify and highlight the duplicate values, that doesn’t mean the Remove Duplicates tool will do the same. The Conditional Formatting tool will overlook the formatting issues as long as the number values are the same. The Remove Duplicates tool will not overlook formatting issues and will consider formatting differences as indicators that two duplicate values are actually unique. For the Remove Duplicates tool, even though 5 and 5.00 and $5 all have the same numerical value, they are still unique (not duplicate) values because they are formatted differently. So be sure to format all of your number values the same way before running the tool again.
Look for extra spaces in your values' cells.If your duplicate values have extra spaces in their cells, those spaces will also cause the Remove Duplicates tool to consider them to be unique values. Removing these spaces can help the Remove Duplicates tool to better detect the duplicate values you want to remove.
Think you know how to use Excel? Check our list ofMicrosoft Excel tips and tricksto learn more about this spreadsheet software.