Start now

How to Highlight Duplicates in Excel

Identifying duplicate values within your spreadsheets is crucial for data management and accuracy in Excel. With the right approach, you can easily spot these duplicates at a glance by applying conditional formatting, allowing you to make informed decisions about your data.

This article walks you step-by-step through the process of highlighting duplicates in Excel. With a few simple actions, you’ll be able to visually distinguish duplicate entries using your choice of color. Follow the instructions below to ensure your spreadsheet is clear and accurate, whether you're analyzing data for business, school, or personal use.

Selecting the Data Range

  • Open your Excel spreadsheet and decide which page or sheet you want to check for duplicates.

  • Make sure you’ve selected the entire column you wish to analyze. For instance, if you want to check column B, simply click on the column header B.

Accessing Conditional Formatting

  • Go to the top menu and click on Format.

  • From the Format dropdown, select Conditional Formatting.

  • A small window or pane will open—this is where you will set up the formatting to highlight duplicates.

Checking the Data Range

  • Make sure the rows included in the conditional formatting range are correct. Adjust the range if necessary within the window so it covers all the data you want to check.

Setting Up the Custom Formula

  • Scroll down in the conditional formatting pane and click on Custom Formula.

  • Locate the Formula box.

  • Click in the Formula box here to make it active and easier to see.

  • Enter a formula that will identify duplicates in your selected column. For example, in Google Sheets, you could type:
    =countif(B:B, B1)>1
    This formula considers a cell a duplicate if it occurs more than once in the column. Note: the formula may vary depending on spreadsheet software.

Choosing the Highlight Color

  • After entering your custom formula, go to the section where you can set the formatting style.

  • Choose your highlighting color—let’s use red in this example.

Applying and Viewing Results

  • Click Done or the similar confirmation button to apply your formatting rules.

  • The spreadsheet will now automatically highlight all duplicate values in your chosen color.

  • Review your column—the highlighted cells represent all duplicates found according to the formula you entered.

Considerations and Tips

  • If you want to highlight duplicates across the whole worksheet, repeat the process for any additional columns.

  • You can change the highlight color in the formatting pane at any time by editing your conditional formatting rule.

  • This approach also helps with large datasets where manual checking is impractical.

  • Remember to remove conditional formatting if you no longer need to highlight duplicates; simply go to Format and choose Clear Rules for the selected range.

  • Conditional formatting does not remove the actual duplicate values, it only highlights them for easy identification.

  • If you’re using a different version of Excel or Google Sheets, some menu items or options might have slightly different names, but the core steps remain the same.

Summary

  • Highlighting duplicates in Excel is an essential technique for data cleaning and review.

  • By using conditional formatting with a custom formula, you can quickly see and address any repeated values in your data.

  • Customizing your highlight color makes it easy to visually pinpoint issues that need attention.

  • This method is flexible, powerful, and can be applied to any column or combination of data you need.

This tutorial was made in only 5 minutes! Create your own tutorial today.
Create a Free Video