How to Remove Duplicate Rows in Excel

If you just need to remove duplicate rows in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: select the range, then Data ▸ Remove Duplicates and tick the columns that define a duplicate. To keep the original, use =UNIQUE(range) instead.

ƒxDuplicate RemoverLive
Unique values
3

2 duplicates removed · 3 kept

Runs entirely in your browser — your data never leaves this page.
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Remove Duplicates strips repeated rows from a selection, keeping the first occurrence and deleting the rest in place. It judges duplicates only on the columns you tick, so two rows can differ elsewhere and still be removed. When you want a deduplicated copy without touching the source, the UNIQUE function spills a clean list you can refer back to. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “remove duplicate rows in excel”. Start on a copy or a tiny sample, keep the affected duplicates visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a data step that keeps your analysis trustworthy, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

A customer list in A1:C500 has repeats. Select it, choose Data ▸ Remove Duplicates, and tick only the Email column so rows are treated as duplicates when emails match. Excel reports how many it removed. Non-destructive alternative: in a blank cell type =UNIQUE(A2:C500) and a deduplicated copy appears, updating automatically as the source changes. Duplicate rows quietly inflate counts, totals and mailing lists. Removing them — or surfacing them with UNIQUE and COUNTIF — is a basic data-hygiene step before any analysis you want to trust. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. The short version of “remove duplicate rows in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

Common mistakes

  • Selecting only one column, so Remove Duplicates shrinks that column out of step with its row.
  • Forgetting it edits in place — make a copy first if you might need the duplicates back.
  • Ticking every column when only one (like an ID) actually defines a duplicate.
  • Overlooking stray spaces or case differences that stop true duplicates from matching; clean with TRIM first.

Frequently asked questions

Remove Duplicates or UNIQUE?

Remove Duplicates edits the data in place and is a one-off action. UNIQUE is a live formula that returns a deduplicated copy and updates automatically.

How do I find duplicates without deleting them?

Use Conditional Formatting ▸ Highlight Cells ▸ Duplicate Values to colour them, or =COUNTIF(range, cell)>1 to flag them.

Why are visible duplicates not removed?

They differ by an invisible space or letter case. Run TRIM and make case consistent so the values truly match.

Other ways people ask this

People reach this page typing “remove duplicate rows in excel”, “remove the duplicate rows in excel”, “eliminate duplicate rows in excel” and “excel remove rows with duplicates”, among other phrasings; whichever wording you used, the fix above is the one you want.

This guide also answers

  • delete duplicate rows in excel
  • how to remove duplicate lines in excel

Why do people search for this in so many different ways?

Because the same task has many names. “remove duplicate rows in excel”, “remove the duplicate rows in excel”, “eliminate duplicate rows in excel” all point at the one operation explained on this page, which is why they all lead here.