PDF download Download Article
Highlight duplicates in your spreadsheets with the Conditional Formatting tool
PDF download Download Article

When working with a Microsoft Excel spreadsheet with lots of data, you'll probably encounter duplicate entries. Microsoft Excel's Conditional Formatting feature shows you exactly where duplicates are, while the Remove Duplicates feature will delete them for you. Viewing and deleting duplicates ensures that your data and presentation are as accurate as possible.

Highlighting and Deleting Duplicates in Excel

  • Select the cell range you want to work with. In the Home tab, click Conditional Formatting > Highlight Cell Rules > Duplicate Values. Choose a highlight color and click OK.
  • To delete duplicates, click the Data tab and select the Remove Duplicates tool. Check the columns where you want to delete duplicates and click OK.
Method 1
Method 1 of 2:

Using Conditional Formatting

PDF download Download Article
  1. Click the cell in the upper left-hand corner of your data group. Hold down the Shift key and click the final cell. Note that the final cell should be in the lower right-hand corner of your data group. This will select all of your data.
    • You can do this in any order (e.g., click the lower right-hand box first, then highlight from there).
    • You can also use Ctrl + A (Windows) or Command + A (Mac) to select the entire sheet.
  2. The Conditional Formatting tool can be found in the Home tab/ribbon of the toolbar (if you’re using Excel for Windows, you’ll find it in the Styles section of the Home tab).[1]
    Advertisement
  3. Make sure your data is still highlighted when you do this.[2]
  4. [3]
  5. By default, the option to highlight duplicate values should already be selected. If it’s not, click the dropdown that allows you to choose which type of values to highlight and choose “Duplicate.”
    • If you instead wish to display all unique values, you can select "Unique" instead.
  6. Select this option from the dropdown next to “values with” or “Format with” (depending on your version of Excel). The highlight color will designate duplicates. The default is light red with dark red text.[4]
  7. All duplicate values should be highlighted in the color you selected.
  8. The basic “Duplicate Values” rule will highlight any cells that contain duplicates. However, there might be situations where you want to adjust or limit what kinds of duplicates are highlighted. For example, you might want to highlight only the Nth and subsequent duplicates, highlight entire rows that contain duplicates, or find only duplicate rows. To do this:[5]
    • Select the cells you want to work with, then go to Conditional Formatting > New Rule.
    • In Windows, select Use a formula to determine which cells to format from the Select a Rule Type menu. On Mac, select Classic from the Style dropdown, then choose Use a formula to determine which cells to format from the next dropdown.
    • Enter the COUNTIF formula in the formula field. The right way to format this will depend on the cell range you’re working with and what information you want to highlight. For detailed instructions on how to format this formula to get the results you want, see this guide from Microsoft.
      • There are numerous examples of COUNTIF formulas you can use for a variety of duplicate-finding situations here. Note that these examples need to be personalized to the specific worksheet and cell values you are working with.
    • Choose your fill color and click OK.
  9. If you’re trying to get rid of unwanted or accidental duplicate values, you can do so by manually deleting them. If you have a huge dataset with lots of duplicates, it might be easier to use the Remove Duplicates tool.
    • Once you delete a one-time duplicate, its partner value will lose its highlight.
  10. Whether you deleted your duplicates or not, you may want to remove the highlight formatting before exiting the document. To do so:
    • Select Conditional Formatting from the toolbar again.
    • Click Clear Rules > Clear Rules from Entire Sheet.
      • If you have multiple sections of your spreadsheet formatted, you can select a specific area and click Clear Rules from Selected Cells to remove their highlighting.
    • Save your changes before closing the document.
  11. Advertisement
Method 2
Method 2 of 2:

Using Excel's Remove Duplicates Feature

PDF download Download Article
  1. Click the cell in the upper left-hand corner of your data group. Hold down the Shift key and click the final cell. Note that the final cell should be in the lower right-hand corner of your data group. This will select all of your data.
    • You can do this in any order (e.g., click the lower right-hand box first, then highlight from there).
    • You can also use Ctrl + A (Windows) or Command + A (Mac) to select the entire sheet.
  2. It’s in the toolbar at the top of Excel.[6]
  3. It’s the icon that looks like a column of three alternating blue and white cells with a red X at the bottom. If you’re in Excel for Windows, this will be in the section labeled “Data Tools.” In Excel for Mac, the sections are unlabeled, but you’ll see it near the right end of the toolbar. Clicking this icon will bring up a customization window.[7]
  4. To delete all duplicates, check the box next to “Select All.” If you only want to delete duplicates from specific columns, tick the boxes next to the names of those columns (e.g., “Name,” “Date of Birth,” “Address”).[8]
    • If your columns have headers, click the “My data has headers” or “My list has headers” option at the top. This will prompt the program to label the first entry in each column as a header, leaving them out of the deletion process.
  5. When you are satisfied with your selections, click OK. This will automatically remove any duplicate values from your selection.
    • If you get an error message saying your sheet doesn’t contain any duplicates, make sure you have the column(s) containing the duplicates selected in the Remove Duplicates dialog box.
    • Don’t forget to save your changes when you’re done!
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I get rid of colored highlighted areas in Excel?
    Community Answer
    Community Answer
    Press Ctrl-H, click Options, and then click the top Format button to search for colored cells (using the Fill tab). Leave the "Replace with" field blank to delete the contents of cells with the format you specified.
  • Question
    How can I tell if a motherboard or hard drive is bad in a PC?
    Community Answer
    Community Answer
    Faulty hard drives will often have data that is said to be corrupted. Motherboards that are faulty result in hardware orientated failures.
  • Question
    Can this method be used to find duplicates between several different sheets? If not, what method can I use to do that?
    Kadriguler
    Kadriguler
    Community Answer
    The repeating data with count of repetitions can be found easily with Excel Vba.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

wikiHow Video: How to Find & Delete Duplicates in Microsoft Excel (Fast & Easy)

Watch


Tips

  • You can also identify duplicate values by installing a third-party add-in utility. Some of these utilities enhance Excel's conditional formatting feature to enable you to use multiple colors to identify duplicate values.
  • Deleting your duplicates comes in handy when reviewing attendance lists, address directories, or similar documents.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

Advertisement

You Might Also Like

Sort a List in Microsoft ExcelSort a List in Microsoft Excel
Unshare an Excel Workbook Unshare an Excel Workbook on Desktop & Mobile
Find Matching Values in Two Columns in Excel Find Matching Values in Two Columns in Excel
Apply Conditional Formatting in ExcelApply Conditional Formatting in Excel
Match Data in ExcelMatch Data in Excel
Filter by Color in ExcelFilter by Color in Excel
Highlight Every Other Row in Excel Highlight Every Other Row in Microsoft Excel
Excel How to Remove Blank RowsStep-by-Step Guide to Removing Blank Rows in Excel (or Google Sheets)
Edit Data in Microsoft Excel3 Simple Ways to Edit Data in MS Excel
Compare Data in Excel4 Simple Ways to Compare Spreadsheet Data in Microsoft Excel
Make Tables Using Microsoft ExcelSimple Steps to Make Tables in Excel
Format a Cell in Microsoft ExcelEasy Steps to Change the Format of a Cell in Microsoft Excel
Highlight a Whole Column in Google Sheets3 Simple Ways to Highlight a Column in Google Sheets
Use ExcelNew to Excel? Here's Super Easy Tricks to Get You Started
Advertisement

About This Article

Megaera Lorenz, PhD
Written by:
wikiHow Staff Writer
This article was co-authored by wikiHow staff writer, Megaera Lorenz, PhD. Megaera Lorenz is an Egyptologist and Writer with over 20 years of experience in public education. In 2017, she graduated with her PhD in Egyptology from The University of Chicago, where she served for several years as a content advisor and program facilitator for the Oriental Institute Museum’s Public Education office. She has also developed and taught Egyptology courses at The University of Chicago and Loyola University Chicago. This article has been viewed 1,926,258 times.
How helpful is this?
Co-authors: 20
Updated: February 16, 2026
Views: 1,926,258
Article SummaryX

To view duplicate cells in your worksheet, start by highlighting the column or row you want to check. Click the Home tab, and then click the Conditional Formatting button in the "Styles" area of the toolbar. Select Highlight Cells Rules on the menu, and then Duplicate Values. Now, choose how you'd like Excel to highlight the duplicates in your data, such as in Light Red Fill with Dark Red Text or with a Red Border. Click OK to see your highlighted duplicates. When you're finished, clear the special formatting by clicking the Conditional Formatting button and selecting Clear Rules and then Clear Rules from Entire Sheet. If you want to delete duplicates without viewing them first, select the cells you want to check, and then click the Data tab at the top. In the "Data Tool"  area of the toolbar, click Remove Duplicates. Click the Select All button at the top-left corner of the window to select all columns, or just select the ones you want to check. Check the box to "My data has headers" if your column has a title cell at the top, and then click OK to remove duplicate cells from the selected area.

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,926,258 times.

Reader Success Stories

  • Anna Krieger

    Anna Krieger

    Nov 30, 2016

    "Thanks a lot for the functions, makes life much easier when getting a list of 1600 items and having to find whether..." more
Share your story

Is this article up to date?

Advertisement