The fastest way to spot duplicates in Excel

Excel has a built-in tool called Conditional Formatting that highlights duplicate values in seconds. Select the column or range of cells you want to check, go to the Home tab, click Conditional Formatting, choose Highlight Cell Rules, then select Duplicate Values. Excel will shade every duplicate entry in a color you choose — usually red or yellow — so you can see at a glance what appears more than once.

If you want to remove duplicates entirely rather than just see them, use the Data tab instead. Select your data range, click Data, then Remove Duplicates. Excel will delete every repeated entry and keep only the first occurrence of each value. This is permanent, so make a copy of your spreadsheet first if you want to keep the original.

Both methods work on any column or range — names, email addresses, product codes, invoice numbers, or any other data type. The choice between them depends on whether you want to keep the duplicates visible (Conditional Formatting) or erase them (Remove Duplicates).

Key Takeaways

  • Conditional Formatting highlights duplicates in color without changing your data, letting you review them before deciding what to do.
  • The Remove Duplicates tool permanently deletes repeated entries and keeps only the first occurrence of each value.
  • Both tools work on any data type — text, numbers, dates — and on any size range from a single column to multiple columns.
  • Make a backup copy of your spreadsheet before using Remove Duplicates, since the deletion cannot be undone.
  • If your data has headers (like "Name" or "Email"), tell Excel to exclude the first row so it does not treat your headers as data.

Using Conditional Formatting to highlight duplicates

Open your spreadsheet and click on the first cell in the column you want to check. Hold Shift and click the last cell in that column to select the entire range. If you have multiple columns to check at once, select all of them together — click the first cell, hold Shift, and click the last cell of the last column you want included.

Go to the Home tab at the top of the screen. In the Styles group, click Conditional Formatting. A dropdown menu will appear. Hover over Highlight Cell Rules and click Duplicate Values. A dialog box will open asking what color you want duplicates to be. Choose a color — red is common — and click OK. Every cell that contains a value appearing more than once in your selection will now be highlighted.

This method is useful when you want to see duplicates without erasing them. You can then manually decide which copies to delete, or you can sort by the highlighted color to group all duplicates together and review them as a block. If you change your mind, you can remove the highlighting by selecting the range again, going to Conditional Formatting, and clicking Clear Rules.

Using Remove Duplicates to delete repeated entries

Select the entire data range that contains duplicates. Include headers if your data has them — the first row with column names like "Name," "Email," or "Date." Click the Data tab at the top of the screen. In the Data Tools group, click Remove Duplicates. A dialog box will open showing all the columns in your selection.

If your data has a header row, check the box that says "My data has headers" at the bottom of the dialog. This tells Excel to treat the first row as labels, not data, so it will not accidentally delete your headers. Then click OK. Excel will scan your data, find every repeated entry, and delete all but the first occurrence of each value. A message will appear telling you how many duplicate rows were removed.

This action cannot be undone with Ctrl+Z if you close the file, so save a copy of your original spreadsheet before you start. If you realize you made a mistake, close the file without saving and reopen the original copy.

Checking multiple columns at once for duplicates

Sometimes you need to find rows where multiple columns match, not just a single column. For example, you might have a customer list where the same person appears twice with slightly different spelling in the first name but the same last name and email. Excel's Remove Duplicates tool can handle this.

When you open the Remove Duplicates dialog, you will see checkboxes next to each column name. By default, all columns are checked. If you want to find duplicates based only on certain columns — say, Last Name and Email — uncheck the columns you want to ignore. Excel will then treat two rows as duplicates only if those specific columns match exactly, even if other columns differ.

This is more precise than checking a single column, because it reduces false positives. A customer named "John Smith" with email john@example.com will not be flagged as a duplicate of "Jane Smith" with email jane@example.com, even though they share the last name.

What happens when duplicates are case-sensitive or have extra spaces

Excel treats "John" and "john" as different values, so if your data has mixed capitalization, they will not be flagged as duplicates. The same applies to extra spaces — "John Smith" and "John Smith" (with two spaces) are technically different. If you suspect this is hiding duplicates in your data, clean up the data first before running either tool.

To fix capitalization, use the UPPER or LOWER function in a helper column to convert all text to the same case, then copy and paste the results back as values. To remove extra spaces, use the TRIM function in a helper column, which strips leading and trailing spaces. After you clean the data this way, run Conditional Formatting or Remove Duplicates again and you will catch duplicates you missed the first time.

Finding duplicates across different sheets

Excel's built-in tools only work within a single sheet at a time. If you need to find duplicates across multiple sheets — for example, checking whether a customer ID appears in both Sheet1 and Sheet2 — you will need to combine the data first. Copy all the data from the second sheet and paste it at the bottom of the first sheet, then run Remove Duplicates or Conditional Formatting on the combined range.

Alternatively, you can use a formula approach with COUNTIF to check for matches. In a new column, type =COUNTIF(Sheet2!A:A,A1) (replacing A1 with the cell you want to check and Sheet2 with the actual sheet name). This formula will return a number showing how many times that value appears in Sheet2. If the result is greater than zero, the value exists in both sheets.

Frequently Asked Questions

Can I undo Remove Duplicates after I close the file?

No. Once you close the file, the deletion is permanent. Always save a backup copy before using Remove Duplicates. If you realize immediately that you made a mistake, press Ctrl+Z to undo, but only before you close the file.

Does Excel consider blank cells as duplicates?

Yes. If you have multiple empty cells in a column, Excel will treat them as duplicates. When you run Remove Duplicates, it will delete all but one blank cell. If you want to keep all blank cells, uncheck the column containing blanks in the Remove Duplicates dialog.

What if I want to keep the last duplicate instead of the first?

Excel's Remove Duplicates tool always keeps the first occurrence. To keep the last instead, sort your data in reverse order before running the tool, so the last occurrence becomes the first. After removal, sort back to your original order.

Can Conditional Formatting highlight duplicates across multiple columns?

Conditional Formatting highlights duplicates within the range you select, but it works column by column. To find rows where multiple columns match, use Remove Duplicates and uncheck the columns you want to ignore, or use a formula-based approach with COUNTIFS.

Will these tools work on a filtered list?

Remove Duplicates will process only the visible (filtered) rows, not hidden ones. Conditional Formatting will highlight duplicates in the entire range, including hidden rows. If you want to work only with filtered data, apply the filter first, then use Remove Duplicates.