The fastest way to spot duplicates in Excel

Excel has a built-in tool called Conditional Formatting that highlights duplicate values automatically. Open your spreadsheet, select the column or range of cells you want to check, go to the Home tab, click Conditional Formatting, then choose Highlight Cell Rules and select Duplicate Values. Excel will instantly color every duplicate entry so you can see them at a glance.

If you need a list of just the duplicates rather than highlighting them in place, you can use a formula or the Remove Duplicates feature to isolate them. The method you choose depends on whether you want to keep your original data untouched or whether you're ready to clean it up.

Key Takeaways

  • Conditional Formatting is the quickest way to see duplicates — select your data, go to Home > Conditional Formatting > Highlight Cell Rules > Duplicate Values.
  • The Remove Duplicates feature deletes duplicate rows permanently, so make a backup copy of your spreadsheet first.
  • A COUNTIF formula can identify duplicates without changing your original data, useful when you need to review before deleting.
  • Duplicates are found only within the range you select, so check each column or section separately if your data spans multiple areas.

Using Conditional Formatting to highlight duplicates

Conditional Formatting colors cells based on rules you set. To find duplicates this way, first select the range of cells you want to check. Click anywhere in that range, then hold Shift and click the last cell to select the whole block. If your data has headers, include them — Excel will treat them as data, but you can ignore the coloring on header cells.

Once your range is selected, go to the Home tab at the top of the ribbon. Click Conditional Formatting (it's in the Styles group). A dropdown menu appears. Hover over Highlight Cell Rules and click Duplicate Values. A dialog box opens. Leave the default settings as they are — Excel will color duplicates in light red by default. Click OK. Every cell that appears more than once in your selected range will now be highlighted.

This method leaves your data unchanged. You can still sort, filter, and work with the spreadsheet normally. The highlighting stays in place until you remove it by selecting the range again, going back to Conditional Formatting, and clicking Manage Rules, then Delete.

Using Remove Duplicates to clean your data

If you want to delete duplicate rows entirely, use the Remove Duplicates feature. This is permanent, so save a copy of your spreadsheet first. Select the entire data range including headers. Go to the Data tab on the ribbon. Click Remove Duplicates (you may need to click a button labeled Data Tools first, depending on your Excel version).

A dialog box appears showing all your columns. By default, all columns are checked. This means Excel will consider a row a duplicate only if every single column matches. If you want to check for duplicates in just one column — for example, to find duplicate email addresses but keep rows with different names — uncheck the columns you don't want to compare. Click OK. Excel removes the duplicate rows and tells you how many it deleted.

After removal, the duplicate rows are gone. You cannot undo this with Ctrl+Z if you close the file, so only use this method when you are certain you want those rows deleted. If you are unsure, use Conditional Formatting first to review what will be removed.

Using a formula to find duplicates without deleting

A COUNTIF formula lets you mark duplicates in a helper column without changing your original data. In a blank column next to your data, click the first cell. Type this formula: =COUNTIF($A$2:$A$100,A2)>1 (replace A2:A100 with your actual data range, and A2 with the first cell of the column you are checking). Press Enter. The formula returns TRUE if that value appears more than once in the range, and FALSE if it appears only once.

Copy this formula down the entire column by clicking the cell with the formula, then dragging the small square at the bottom-right corner of the cell down to the last row of your data. Now every row shows TRUE or FALSE. You can filter by TRUE to see only the duplicates, or sort by this column to group duplicates together. When you are done reviewing, delete the helper column.

This approach is safer than Remove Duplicates because your original data stays intact. You can review which rows are duplicates, decide which ones to keep, and delete them manually if needed.

Finding duplicates across multiple columns

Sometimes you need to find rows where two or more columns match, not just one. For example, you might want to find people with the same first and last name, even if other details differ. Conditional Formatting and Remove Duplicates both work this way by default — they check all selected columns together.

Select your entire data range including all columns you want to compare. Use Conditional Formatting or Remove Duplicates as described above. Excel will treat a row as a duplicate only if all the columns in your selection match another row exactly. If you want to check only certain columns, select just those columns instead of the entire range.

What to do when duplicates span different sheets

If your data is split across multiple sheets, you cannot find duplicates between sheets using Conditional Formatting or Remove Duplicates directly. Instead, copy all the data from each sheet into one temporary sheet, then run the duplicate-finding tool. Alternatively, use a COUNTIF formula that references another sheet: =COUNTIF(Sheet2!$A:$A,A1)>0 will check if the value in A1 exists anywhere in column A of Sheet2.

After you identify duplicates across sheets, you can decide whether to delete them, flag them for review, or move them to a separate location. The formula method is safer because it does not delete anything — it only marks what it finds.

Common mistakes when finding duplicates

The most common error is forgetting to select the correct range. If you select only part of your data, Excel will only check that part. Duplicates outside your selection will not be found. Always scroll to the end of your data to make sure you have selected everything before running any duplicate tool.

Another mistake is including headers in Remove Duplicates without realizing it. If your first row contains column names like "Name" and "Email", and your second row has the same values, Remove Duplicates will treat the second row as a duplicate of the header and delete it. To avoid this, either select only the data rows (not headers) or make sure your headers are genuinely unique.

Spaces and capitalization also matter. "John" and "john" are treated as different values. " email@example.com" (with a leading space) is different from "email@example.com". If your duplicates are not being found, check for extra spaces by clicking a cell and looking at the formula bar at the top.

Frequently Asked Questions

Can I find duplicates in just one column without checking the others?

Yes. Select only that column, then use Conditional Formatting or Remove Duplicates. Excel will check only the cells you selected. If you use a formula, write it to reference only that column, like =COUNTIF($A$2:$A$100,A2)>1.

What if I want to keep one copy of each duplicate and delete the rest?

Remove Duplicates keeps the first occurrence and deletes the rest, which is usually what you want. If you need to keep a different copy, sort your data first so the row you want to keep is first, then run Remove Duplicates.

Does Conditional Formatting slow down my spreadsheet?

Conditional Formatting can slow very large spreadsheets (tens of thousands of rows), but for typical data it has no noticeable effect. If your file becomes slow, remove the formatting by selecting the range, going to Conditional Formatting, and clicking Manage Rules, then Delete.

Can I find duplicates if the values are in different cases, like "John" and "JOHN"?

Conditional Formatting and Remove Duplicates treat "John" and "JOHN" as different values. If you need to ignore case, use a formula with the UPPER or LOWER function to convert everything to the same case first, or manually clean the data before checking for duplicates.

What happens if I remove duplicates and then realize I made a mistake?

If you have not closed the file, press Ctrl+Z to undo. If you have closed it, the deleted rows are gone unless you have a backup. Always save a copy before using Remove Duplicates.