ExcelFormattingBeginnerLast updated: August 22, 2025

How to Remove Duplicates in Excel

Duplicates in Excel spreadsheets are more than just annoying—they can skew your calculations, mess up your reports, and make data analysis a nightmare. Whether you’re cleaning up a customer list, inventory data, or survey results, removing duplicates is a critical skill.

The good news: Excel has a built-in tool to find and remove duplicates quickly. The bad news: it’s easy to accidentally delete important data if you’re not careful. Follow this step-by-step guide to clean your data safely.

When You Need to Remove Duplicates

Common scenarios where duplicates sneak in:

  • Importing data from multiple sources (e.g., combining two customer lists)
  • Manual data entry typos (e.g., "John Doe" and "Jon Doe")
  • Accidental copy-paste errors
  • Duplicate rows in large datasets

Before You Start: Critical Preparation

Always do this first! Before removing any duplicates, create a backup of your data:

  1. Right-click your worksheet tab (at the bottom)
  2. Select "Move or Copy"
  3. Check "Create a copy" and click OK
  4. Rename the copied sheet "Original Data" (so you can revert if needed)

This safety net prevents permanent data loss if you make a mistake.

Step 1: Select Your Data Range

  1. Click any cell in your dataset
  2. If your data has headers (like "Name", "Email"), select the entire range including headers
  3. If no headers, just select the data you want to check

Pro tip: Press Ctrl+A (Windows) or Cmd+A (Mac) to select all contiguous data quickly.

Select data range for duplicate removal
Select data range for duplicate removal

Step 2: Open the Remove Duplicates Tool

  1. Go to the Data tab in the ribbon
  2. Look for the "Data Tools" group
  3. Click the Remove Duplicates button (it looks like two sheets with a red X)

Remove Duplicates button location
Remove Duplicates button location

Step 3: Configure Your Duplicate Settings

A pop-up window will appear with two important options:

  1. My data has headers
    Check this box if your first row contains column names (like "Email" or "Product ID"). Excel will exclude this row from duplicate checks.

  2. Columns to check for duplicates
    By default, Excel checks all columns for duplicates (a row must match exactly in every column to be considered duplicate).

    Customize this by:

    • Unchecking columns that don't need to be unique (e.g., "Quantity" might have duplicates intentionally)
    • For most lists, checking just the critical unique identifier (e.g., "Email" for customer lists)

Remove Duplicates settings window
Remove Duplicates settings window

Step 4: Remove the Duplicates

Click OK to start the process. Excel will:

  • Show a message telling you how many duplicates were found and removed
  • Keep the first occurrence of each duplicate entry
  • Highlight the remaining unique values

Example result message: "3 duplicate values found and removed; 4 unique values remain. Note that counts may include empty cells, space, etc."

Remove Duplicates Result
Remove Duplicates Result

What to Do If You Remove Too Much

If you accidentally remove important data:

  1. Go to your "Original Data" backup sheet
  2. Copy the lost data (Ctrl+C / Cmd+C)
  3. Paste it back into your working sheet (Ctrl+V / Cmd+V)
  4. Repeat the process with adjusted column settings

Advanced: Find Duplicates Without Deleting Them

If you want to identify duplicates without removing them (to review first):

  1. Insert a new column next to your data (call it "Duplicate?")
  2. In the first cell (below the header), enter this formula:
    =IF(COUNTIF(A:A, A2)>1, "Duplicate", "Unique")
    (Replace A:A with your column range, and A2 with the first data cell)
  3. Drag the formula down to apply to all rows
  4. Use filters to sort and review duplicates before deleting

Duplicate identification formula
Duplicate identification formula

For Google Sheets Users: Quick Comparison

The process is nearly identical in Google Sheets:

  1. Select your data
  2. Go to Data > Remove duplicates
  3. Choose columns to check
  4. Click "Remove duplicates"

Google Sheets adds a nice feature: it shows a preview of which rows will be removed before confirming.

Final Tips for Clean Data

  • Check for partial duplicates: Excel won't catch "JohnDoe@gmail.com" and "john.doe@gmail.com" as duplicates—clean text formatting first
  • Use conditional formatting: Highlight duplicates temporarily with Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values
  • Automate with Power Query: For regularly updated data, use Data > Get & Transform Data to create a reusable duplicate removal process

Have a problem with Excel or Google Sheets?

Tell us about the issue you're facing, and we'll create a step-by-step guide for it.