To highlight doubles (duplicates) in Excel, select the range of cells you want to check, go to the Home tab, click Conditional Formatting > Highlight Cells Rules > Duplicate Values..., and then click OK. This process instantly applies a color fill to any cell that contains a value appearing more than once in your selection, making it easy to spot data entry errors or repeated entries.

Highlighting duplicates is an essential data-cleaning step. Whether you are managing a mailing list, tracking inventory, or analyzing financial records, identifying repeated entries prevents skewed results and ensures your dataset remains accurate. By using Conditional Formatting, you aren't changing the data itself; you are simply adding a visual layer that allows you to see where the repeats are before deciding whether to delete them or merge them.

What You'll Need

  • A computer with Microsoft Excel installed (works on Windows and macOS).
  • A dataset containing the values you wish to check for duplicates.
  • A basic understanding of how to select a range of cells.

Step-by-Step

  1. Select Your Data: Use your mouse to click and drag over the cells, columns, or rows you want to check for doubles. To select an entire column, click the letter at the top of the column (e.g., Column A). To select the whole sheet, press Ctrl + A (Windows) or Cmd + A (Mac).
  2. Open Conditional Formatting: Navigate to the Home tab on the top ribbon. In the Styles group, click the Conditional Formatting button. Note that menu labels may differ slightly depending on your version of Excel or region.
  3. Navigate to Highlight Rules: Hover your mouse over Highlight Cells Rules. A side menu will appear with several options.
  4. Select Duplicate Values: From the side menu, click on Duplicate Values.... This will open a small dialog box.
  5. Choose Your Formatting: In the dialog box, you will see two dropdown menus. The first allows you to choose between "Duplicate" and "Unique." Keep it set to Duplicate. The second dropdown allows you to choose the highlight color (e.g., "Light Red Fill with Dark Red Text"). You can also select "Custom Format..." if you want a specific color not listed.
  6. Apply the Highlight: Click OK. Excel will immediately scan the selected range and apply the chosen color to every cell that has a double.

Common Mistakes

  • Selecting the Header Row: If your column header is the same as a value in your data, Excel will highlight both. To avoid this, start your selection from the first row of actual data, not the title.
  • Ignoring Hidden Spaces: Excel treats "Apple" and "Apple " (with a trailing space) as different values. If you know you have doubles but they aren't highlighting, check for accidental spaces at the end of your text.
  • Overlapping Rules: Applying multiple conditional formatting rules to the same range can lead to confusion. If the colors look wrong, check the "Manage Rules" section to see if old rules are conflicting with new ones.
  • Confusing Highlighting with Removing: Remember that this process only colors the cells. It does not delete the duplicates. You must still manually delete them or use the "Remove Duplicates" tool under the Data tab.

Tips

  • Filter by Color: Once you have highlighted the doubles, you can easily group them together. Click the Data tab, select Filter, then click the filter arrow in your column header and choose Filter by Color. This isolates all duplicates for quick review.
  • Highlight Uniques: In the "Duplicate Values" dialog box, you can change the first dropdown from "Duplicate" to Unique. This is helpful when you want to find the "one-offs" in a list of repeated data.
  • Use Tables: If you convert your data range into an official Excel Table (Ctrl + T), any new data you add to the bottom of the list will automatically be checked for duplicates based on the rule you already set.

Troubleshooting

If the duplicates are not highlighting as expected, try these steps in order:

  1. Check for Data Type Mismatches: Ensure that numbers are formatted as numbers and text as text. If one "100" is stored as text and another as a number, Excel will not see them as duplicates.
  2. Clear Existing Formatting: Go to Home > Conditional Formatting > Clear Rules > Clear Rules from Selected Cells. Then, try the process again from the start.
  3. Trim Excess Spaces: Use the =TRIM() function in a helper column to remove leading and trailing spaces from your data, then apply the highlighting to the trimmed column.
  4. Check Calculation Settings: Ensure your workbook is set to "Automatic" calculation. Go to the Formulas tab > Calculation Options and select Automatic.

Frequently Asked Questions

Can I highlight duplicates across two different columns?

Yes. If you select two columns simultaneously before applying the Conditional Formatting rule, Excel will highlight any value that appears more than once anywhere within that entire selection.

How do I remove the highlighting once I'm done?

Select the cells, go to the Home tab, click Conditional Formatting, and select Clear Rules > Clear Rules from Selected Cells.

Will this work for case-sensitive text?

No. By default, Excel's built-in Duplicate Values tool is not case-sensitive. It treats "APPLE" and "apple" as the same value. For case-sensitive highlighting, you would need to use a custom formula with the EXACT function.

Can I highlight only the second or third occurrence of a double?

The standard "Duplicate Values" tool highlights every instance of the repeat. To highlight only the subsequent occurrences (leaving the first one clean), you must use a custom formula like =COUNTIF($A$1:A1, A1)>1 in the Conditional Formatting menu.

Does this work in the web version of Excel?

Yes, the process is nearly identical in Excel for the Web. Navigate to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.