Skip to main content
  1. Home
  2. Computing
  3. How tos

How to remove duplicates in Excel

Add as a preferred source on Google
woman working in shared Industrious workspace with laptop.
Image used with permission by copyright holder

You can improve your spreadsheet's readability by removing unnecessary duplicate values. If you know you don't need them, why not use Microsoft Excel to 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.

Recommended Videos

Difficulty

Easy

Duration

10 minutes

What You Need

  • A PC

  • 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 the Home tab from the Ribbon Menu at the top of the screen.

how to remove duplicates in excel find screenshot 1
screenshot

Step 2: On the Home tab, click on Conditional Formatting. From the menu that appears select Highlight Cells Rules.

how to remove duplicates in excel find screenshot 2
screenshot

Step 3: Then choose Duplicate Values. In the dialog box that appears, click on the drop-down menu after the phrase Values With and choose your desired color formatting for the cells that are deemed to be duplicates.

how to remove duplicates in excel find screenshot 3
screenshot

Step 4: Click OK. 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 simply hide 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 the Data tab on the Ribbon Menu at the top of the screen. Then navigate to the Data Tools section of the Data tab menu.

how to remove duplicates in excel screenshot 1
screenshot

Step 3: In the Data Tools section, click on the Remove Duplicates button. (It looks like three blue and white cells with a red X.)

Step 4: In the Remove Duplicates dialog box that appears, and in the Columns section, 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.

how to remove duplicates in excel screenshot 2
screenshot

Step 5: Then click OK.

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.

how to remove duplicates in excel screenshot 3
screenshot

Troubleshooting: What if Excel doesn't remove all the duplicates?

Sometimes, Excel doesn't remove all of the duplicates that are visible to us in a 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 of Microsoft Excel tips and tricks to learn more about this spreadsheet software.

Anita George
Anita George has been writing for Digital Trends' Computing section since 2018. So for almost six years, Anita has written…
The maker of ChatGPT wants to make open-source projects less of a security bargain
OpenAI launches Patch the Planet for open-source security, with over 30 open-source projects on board.
openai-chatgpt-os

OpenAI has launched Patch the Planet, a new initiative aimed at fixing one of the internet's quietest problems – the chronically underfunded security of open-source software.

Patch the Planet pairs OpenAI's most security-capable AI models with Trail of Bits, a security firm that has committed its entire research organization to the effort, alongside support from HackerOne and Calif.

Read more
I sifted through the Prime Day chaos to find the best Apple deals actually worth buying
Apple's about to hike prices. Prime Day 2026 is your last chance to save up to $150 on MacBooks, AirPods, and iPads.
Prime Day Deals on Apple Products

Apple is set to increase the prices for its upcoming iPhones and MacBooks, as the company can no longer offset the rising RAM and storage costs. That means, if you are looking to upgrade your aging device, you should buy the current-generation Apple products rather than wait for the new ones.

And since Amazon Prime Day is offering good discounts on the latest iPhones, iPads, MacBooks, and other Apple accessories, this is the perfect time to buy them. Here are my favorite Amazon Prime Day deals for Apple products. 

Read more
This sneaky photo trick gets AI chatbots to ignore their safety rules
Florida International University researchers built a method that nearly doubled the rate of harmful responses from a tested AI model using nothing but pixel-level edits in an image.
JaiLIP AI chatbot exploit image

A photo that looks completely ordinary to you could carry a hidden instruction to trick an AI chatbot into ignoring its safety rules, according to new research out of Florida International University. The study found that pixel-level alterations in an image that are invisible to the human eye can be enough to confuse the model reading the image and lead it to generate responses it would normally block.

Hacking what the AI sees

Read more