How To Find Duplicates In Excel

A practical step-by-step guide to how to find duplicates in excel, including preparation, instructions, common issues, tips, and next steps.

Published 2026-07-25

How To Find Duplicates In Excel cover image

How To Find Duplicates In Excel

Finding and managing duplicate data is a critical step in keeping your spreadsheets accurate and reliable. Whether you're cleaning a customer list, preparing data for analysis, or just tidying up a large file, extra entries can cause errors and skew your results. This guide provides clear, step-by-step instructions for three primary methods to find duplicates in Excel: visually highlighting them, filtering to see them, and permanently removing them. We cover everything from the simplest built-in tools to more advanced formulas, ensuring you can handle any data cleaning task with confidence.

Fast Answer

  • Quickest Method: Conditional Formatting
  • Menu Path: Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values
  • For Deleting: Data > Remove Duplicates
2-10 minutes Time needed
Beginner Difficulty
Accidentally deleting data Watch out for

Before You Start

Before making any changes to your spreadsheet, a little preparation can prevent major headaches. Taking a moment to set up correctly ensures your original data remains safe and you understand the scope of your task.

  • A copy of your Excel file: This is the most important step. Always work on a duplicate of your spreadsheet to prevent accidental, irreversible data loss. To make a copy, find your file, right-click it, and select "Copy," then right-click in the same folder and select "Paste." Rename the copy to something like "MyData_WithDuplicatesRemoved."
  • Microsoft Excel: These instructions are for modern versions of Excel (Excel for Microsoft 365, Excel 2021, Excel 2019) on Windows and Mac. The steps are very similar for older versions and the free Excel for the web, though menu locations may vary slightly.
  • A clear goal: Understand what counts as a "duplicate" in your sheet. Is it a duplicate email address, a duplicate order number, or an entire row that is identical to another? Knowing this will help you choose the right method and settings.
Check first: Always create a backup of your original data file before you begin. The "Remove Duplicates" feature permanently deletes rows, and while you can undo it immediately (with Ctrl+Z), you cannot recover the data after the file has been saved and closed.

Step-by-Step Instructions

We'll cover three main ways to handle duplicates, starting with the safest method (highlighting) and moving on to permanent removal. Follow the method that best fits your goal.

Method 1: Highlight Duplicates with Conditional Formatting

This is the best and safest way to start. It doesn’t change or delete any of your data; it simply applies a color to cells that contain duplicate values, making them easy to spot. This is perfect for reviewing your data before taking further action.

  1. Select the data you want to check. Click and drag your mouse to highlight the cells. You can select a single column, multiple columns, or a whole table. A quick way to select a whole column is to click its letter header (like A, B, C). For a block of data, click the top-left cell, hold the Shift key, and then click the bottom-right cell.
  2. Navigate to the Home tab on the Excel ribbon at the top of the screen.
  3. In the "Styles" group, click on Conditional Formatting. A dropdown menu will appear.
  4. Hover over Highlight Cells Rules, and from the next menu that appears, click on Duplicate Values.
  5. A small dialog box will pop up. The first dropdown should already say "Duplicate." In the second dropdown, "Values with," you can choose the formatting style. "Light Red Fill with Dark Red Text" is the default and is very visible. Click OK.

Immediately, all cells in your selection that contain duplicate values will be highlighted with the color you chose. You can now visually scan your data to see where the duplicates are. Note that this tool also allows you to highlight "Unique" values by changing the first dropdown in the dialog box.

Tip: If you want to remove the highlighting later, go back to Conditional Formatting > Clear Rules > Clear Rules from Selected Cells (or "from Entire Sheet").

Method 2: Filter Data to Show Only Duplicates

After highlighting duplicates using Method 1, you might want to view only the duplicate rows together. Filtering allows you to temporarily hide all the unique data, making it easier to review or manually delete the duplicate entries.

  1. First, ensure you have highlighted duplicates using the Conditional Formatting steps above.
  2. Select the header row of your data. If you don't have a header row, select the first row of your data.
  3. Go to the Data tab on the Excel ribbon.
  4. In the "Sort & Filter" group, click the large Filter icon. Small dropdown arrows will appear in each header cell of your selected data.
  5. Click the filter arrow for the column where you highlighted duplicates.
  6. In the filter menu, hover over Filter by Color.
  7. Select the fill color you used for highlighting duplicates (e.g., the light red color).

Your data table will instantly hide all rows that are not highlighted, leaving you with a clean list of just the duplicate entries. From here, you can decide which ones to edit or delete manually. To see all your data again, go back to the Data tab and click the Filter icon to turn it off.

Method 3: Permanently Remove Duplicates

When you're certain you need to delete duplicate rows, Excel has a powerful built-in tool for the job. This action is permanent once you save the file, so be absolutely sure you're working on a backup copy.

  1. Click any single cell inside your data table or list. Excel is usually smart enough to detect the entire range of your data automatically.
  2. Go to the Data tab on the ribbon.
  3. In the "Data Tools" group, click on Remove Duplicates.
  4. A dialog box will appear. It will list all the columns in your data, with checkboxes next to each one. If your data has headers, make sure the "My data has headers" box is checked.
  5. This is the most important step: You must tell Excel what defines a duplicate.
    • If you want to remove rows that are identical across all columns, leave all columns checked.
    • If a duplicate is defined by just one column (e.g., an email address), click Unselect All and then check the box for only the "Email" column. This will keep the first row with a specific email address and delete all other rows that have the same email, regardless of what's in the other columns.
  6. Once you've selected the correct columns, click OK.

Excel will then scan your data, remove the duplicate rows based on your criteria, and show a message telling you how many duplicate values were found and removed, and how many unique values remain. This tool always keeps the first instance of a value it finds (from top to bottom) and deletes the subsequent ones.

Check first: If you need to keep the newest record instead of the oldest, you must sort your data by date (newest to oldest) before using the Remove Duplicates tool.

Method 4: Use a Formula to Find Duplicates (Advanced)

For more control, you can use a formula to identify duplicates. This method doesn't delete anything; it just flags duplicates in a new column, giving you more information to work with. We'll use the `COUNTIF` formula.

  1. Add a helper column. Go to the first empty column to the right of your data. In the header row, give it a name like "Duplicate Check."
  2. Let's assume the data you want to check for duplicates is in column A, starting from cell A2 (since A1 is the header). In the first cell of your helper column (e.g., D2), type the following formula: =COUNTIF(A:A, A2)
  3. Breakdown of the formula:
    • =COUNTIF(...) is the function that counts cells based on a given condition.
    • A:A is the range to check. This tells Excel to look at the entire Column A.
    • A2 is the criteria. This tells the function to count how many times the value from cell A2 appears in the range (A:A).
  4. Press Enter. The cell will now show a number.
  5. Copy the formula down the column. Click on the cell with the formula (D2). Move your cursor to the small green square at the bottom-right corner of the cell (the fill handle) until it turns into a black plus sign. Double-click it. The formula will automatically copy all the way down your helper column.

Now, look at the results. Any row with a "1" in the "Duplicate Check" column is unique. Any row with a number greater than 1 is a duplicate. You can now filter this column to show only values greater than 1 to see all your duplicates grouped together.

Step-by-Step Instructions

Document what changed

Save the final settings, decisions, or checks so the same process is easier to repeat later.

Tip: Keep the step simple and verify the result before continuing.

Quick Reference

Situation Use This Method Why It's Best
I just want to see where duplicates are without changing anything. Conditional Formatting It's fast, completely non-destructive, and gives you a clear visual overview of your data.
I need to delete all extra records and keep only the first unique entry. Data > Remove Duplicates This is the most direct and efficient tool for permanently cleaning your list based on specific columns.
I need to review duplicates one-by-one before deciding what to do. Conditional Formatting + Filter This combination lets you isolate only the duplicate rows so you can focus on them without the distraction of unique data.
I need to know exactly how many times each item is repeated. COUNTIF Formula This gives you a precise count for every single row, offering more detail than a simple highlight.

Common Problems When Finding Duplicates

Sometimes, Excel doesn't find duplicates you can clearly see. Here are the most common reasons why and how to fix them.

  • Problem: Hidden Spaces or Characters. A value might look like "Apple" but actually be "Apple " (with a space at the end). Excel sees these as two unique values.
    • Solution: Use the `TRIM` function to remove leading and trailing spaces. Create a new column and use the formula `=TRIM(A2)`, then copy it down. Use this new, clean column to find duplicates.
  • Problem: Inconsistent Capitalization. "smith@email.com" and "Smith@email.com".
    • Solution: Luckily, Excel's built-in Conditional Formatting and Remove Duplicates tools are not case-sensitive, so they will correctly see these as duplicates. However, if you use a formula like `EXACT`, it will treat them as different. For consistency, you can use the `LOWER` or `UPPER` functions to make all text the same case before checking.
  • Problem: Removing the Wrong Data. The Remove Duplicates tool kept the oldest record, but you wanted to keep the most recent one.
    • Solution: The tool always keeps the first record it finds from the top of the sheet. To control which record is kept, you must sort your data first. For example, if you want to keep the newest entry, sort your data by date from newest to oldest before you use Remove Duplicates.
  • Problem: Numbers Stored as Text. One cell has the number `123`, and another has `123` formatted as text. Excel may see these as different.
    • Solution: Select the column, look for the small error icon that appears, and choose "Convert to Number." This ensures all numbers are in the same format.

Advanced Tips for Managing Duplicates

Once you've mastered the basics, these techniques can give you even more power and flexibility.

  • Find Duplicates Across Two Sheets: To see if a value in Sheet1 also exists in Sheet2, you can use a `COUNTIF` formula that references the other sheet. In a helper column on Sheet1, use a formula like: `=IF(COUNTIF(Sheet2!A:A, A2)>0, "Duplicate", "Unique")`. This checks if the value in cell A2 of Sheet1 appears anywhere in column A of Sheet2.
  • Use a PivotTable to Summarize Duplicates: A PivotTable is an excellent, non-destructive way to quickly see duplicate counts.
    1. Select your data and go to Insert > PivotTable.
    2. In the PivotTable Fields pane, drag the column you want to check (e.g., "Email Address") into the Rows area.
    3. Drag the same field again into the Values area. It should default to "Count of Email Address."
    4. The resulting PivotTable will show a list of all unique email addresses and how many times each one appears in your data. You can then sort this table to quickly see which values have a count greater than 1.
  • Explore Power Query: For large datasets or repetitive tasks, Excel's Power Query (also known as Get & Transform Data) is the ultimate tool. You can find it under the Data tab. Power Query allows you to create a repeatable set of steps to clean your data. It has built-in "Keep Duplicates" and "Remove Duplicates" functions that are more robust and can be refreshed with a single click if your source data changes.

How To Find Duplicates In Excel FAQ

How can I just highlight duplicates without deleting them?

The best way is to use Conditional Formatting. Go to the Home tab, click Conditional Formatting > Highlight Cells Rules > Duplicate Values. This will apply a color to duplicate cells without altering any of your data, making it safe for review.

Does "Remove Duplicates" delete all copies or just the extra ones?

It keeps the first instance of a value it encounters (starting from the top row) and deletes all subsequent identical copies. This is why sorting your data beforehand is important if you want to control which record gets kept.

Can I find duplicates based on two columns combined?

Yes. When you use the Data > Remove Duplicates tool, a dialog box appears with a list of all your columns. Simply check the boxes for the two (or more) columns you want to use to define a duplicate. Excel will then only remove a row if the values in all selected columns match another row.

Is there a way to undo "Remove Duplicates"?

You can undo the action immediately after performing it by pressing Ctrl+Z (or Cmd+Z on a Mac). However, once you save and close the file, the deletion is permanent. This is the main reason why you should always work on a backup copy of your file.

Why isn't Conditional Formatting finding a duplicate that I can see?

This is almost always due to subtle differences Excel can see but you can't. The most common cause is an extra space at the beginning or end of a cell's text. Use the `=TRIM()` function in a new column to create a clean version of your data, then try finding duplicates in that new column.

Final Checklist for Finding Duplicates in Excel

Run through this checklist before you finalize your work to ensure your data is clean and accurate.

  • Backup Created: Did you make a copy of your original file before you started?
  • Goal Defined: Are you clear on which column(s) determine a duplicate entry?
  • Correct Range Selected: Did you apply your chosen method to the entire dataset you intended to check?
  • Method Chosen: Did you use the right tool for the job? (Highlight for review, Remove for permanent cleaning).
  • Settings Confirmed: If removing duplicates, did you double-check the columns selected in the dialog box?
  • Review Results: Did you look over the results to make sure no important data was accidentally removed?
  • Save Your Work: Once you are confident in the changes, save the cleaned file (perhaps with a new name, like "MyData_Cleaned").