How to remove duplicate rows in Excel

Delete repeated records from an Excel list with Data → Remove Duplicates, back up first, highlight duplicates without deleting anything and copy only the unique records to another location.

How to remove duplicate rows in Excel

In files such as a customer list, a mailing list or a stock count, the same record is sometimes entered more than once. Those repeats inflate totals and can mean the same person gets two messages. You don't have to hunt for them one by one in Excel; a single command on the Data tab clears them all at once.

This guide shows you how to remove duplicate rows in Excel after taking a backup, how to highlight them without deleting anything and how to extract the unique records to a separate place. Menu names are taken from Microsoft's own support pages.

Reklam
  • Time5 minutes
  • DifficultyEasy
  • Steps9

🧰 What you need

  • Excel 2016, 2019, 2021, 2024 or Microsoft 365 (the Remove Duplicates command on the Data tab is available in these versions)
  • A worksheet that contains duplicate rows
  • A blank worksheet or a separate file to hold a backup of the original data

Steps

  1. Back up the original data firstRemove Duplicates deletes rows permanently. Microsoft also recommends copying the original cell range to another worksheet or workbook before you start. Select the table, press Ctrl + C and paste it into a blank sheet with Ctrl + V. Then do the deleting on the main sheet and leave the backup untouched.
  2. Remove subtotals and outlinesExcel can't remove duplicate values from data that is outlined (grouped) or has subtotals. If your data has rows created with Subtotal or Group on the Data tab, remove them first. If you have a plain list or a table, skip this step.
  3. Preview the duplicates firstTo see what is about to be deleted, select the column or range. Go to Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values, pick a format and select OK. Repeated cells are coloured. This changes only how the cells look and deletes nothing.
  4. Select the rangeSelect the cell range that contains the duplicate rows. If your data is an Excel table, just click any cell inside it; the active cell has to be within the table. Make sure the selection runs from the header row to the last row so that neighbouring columns don't get mixed up.
  5. Open Data → Remove DuplicatesSwitch to the "Data" tab on the ribbon and select "Remove Duplicates". The Remove Duplicates window opens and asks which columns Excel should compare when deciding what counts as a repeat.
  6. Set the columns and the header optionIf the first row holds column headings such as Name or Phone, select the "My data has headers" box. In the "Columns" list, leave ticked only the columns you want compared; use "Select All" to tick them all and "Unselect All" to clear them. If you tick every column, only rows that are identical in every column count as duplicates. If you tick only the email column, rows with the same email count as repeats even when their other columns differ, so choose your columns carefully.
  7. Select OK and read the messageWhen you select "OK", Excel shows a message saying how many duplicate values were found and removed and how many unique values remain. According to Microsoft, these counts might include empty cells, spaces and so on. If the number is very different from what you expected, undo it right away as described in the next step.
  8. Check the result and undo if neededLook through the list. If you notice you picked the wrong columns, select "Undo" or press Ctrl + Z straight away, then go back to step 5 and correct the selection. If the result is right, save the file. Keep the backup sheet until you are sure you are done.
  9. If you only want to extract unique rows without deletingSelect "Advanced" on the Data tab. Choose "Copy to another location", enter an empty cell as the destination, tick "Unique records only" and select OK. The original list stays as it is and the unique records are copied to the new location. If you choose "Filter the list, in-place" in the same window instead, the repeats are only hidden temporarily.

⚠ This guide is general information. Yudum cannot be held responsible for the outcome of following it; for official procedures always rely on the institution's own statement. Steps and fees change over time.

Was this guide helpful?
ShareWhatsAppXFacebook
💬 Comment on this articleShare what you think and join the comments below.Write a comment →

Related content

Reklam
50,8455,4866,57İstanbul4°

Yudum World

A village at the foot of Mount Kaf.

Create your character, stroll the square and meet people face to face. In your browser, free.

  • 🧑 Create your character
  • 🎲 Play a round at the coffeehouse
  • 🏠 Build a home with your group
Duel of the week
Yudum WorldA village at the foot of Mount Kaf is waiting for you.Join free →