Duplicate entries in a single Excel column look harmless until they break a VLOOKUP count, inflate a sum, or throw off a mail merge. The fastest fix is the built-in Remove Duplicates button on the Data tab, which compares the one selected column and deletes repeated rows in place — but it permanently rewrites your data, so it belongs to a copy of the sheet, not the original. Pick the method by what you need afterward: a clean working list, a live formula that updates, or a one-cell summary count.

Microsoft ships five practical routes to the same goal, and they differ in one detail that trips people up: how they treat blank cells. Remove Duplicates ignores a truly blank cell when judging a row, so three empty cells in your column survive as "unique," while COUNTIF treats blanks as duplicates of each other. Read the list below with that asymmetry in mind, and match the tool to whether you want the duplicates gone or merely flagged.

Method Where it lives Changes your data? Updates automatically? Best for
Remove Duplicates Data tab → Data Tools group Deletes rows in place No One-time cleanup of a pasted list
Advanced Filter Data tab → Sort & Filter group No, copies to new spot No Keeping the original intact
UNIQUE function Any cell, Microsoft 365 and Excel 2021+ No Yes A live, spill-updating list
COUNTIF helper Formula in adjacent column No Yes Flagging before you decide
Power Query Data tab → Get & Transform Data No, loads a new table On refresh Repeating monthly imports

Method 1: Remove Duplicates on One Selected Column

Select the column first, and understand what the dialog will assume. If you highlight cells A2 through A400 and click Remove Duplicates, Excel shows a dialog listing only "Column A" with a checkbox. Leaving the box ticked means the tool compares values in that column alone, and a row is deleted when its A value has already appeared above it. If you select the whole table instead, every column header appears in that list, and you can uncheck all but the one you care about — a safer habit when neighboring columns hold different data.

1: Press Ctrl+Z once before you start if anything is unsaved; the operation cannot be undone after you save and close. 2: Click any cell inside your data, or highlight the exact column range, such as A1:A500. 3: Go to the Data tab and click Remove Duplicates in the Data Tools group. 4: In the dialog, tick My data has headers if row 1 holds labels; the header text then appears in the column list instead of "Column A." 5: Tick only the column you want compared, and untick the rest. 6: Click OK. Excel reports how many values were found and how many duplicates were removed, plus how many unique values remain.

That summary message is your audit trail, and it's worth reading closely. A report of "3 duplicates removed, 97 unique values remaining" from a 100-row range means the math checks out; a report of "0 duplicates removed" usually means a trailing space, a case difference, or a number stored as text is making identical-looking entries compare as unequal. Excel's comparison here is not case-sensitive, so "apple" and "APPLE" count as duplicates, but "apple " with a trailing space does not.

Failure handling matters more than the happy path. Remove Duplicates works on the used range of the selected cells and will not reach rows beyond your selection — a common cause of "it missed some." If your column sits inside a table (Ctrl+T), the button behaves the same but the table structure survives. If the sheet is protected, the button greys out; unprotect via Review → Unprotect Sheet first. And if you're working in Excel for the web, Remove Duplicates is available but the dialog is trimmed down, so confirm the right column is ticked before you commit.

Method 2: Advanced Filter With Unique Records Only

Advanced Filter is the non-destructive twin of the button above, and it's the method to choose when the original list must survive untouched. Select your column including its header, then open Data → Advanced in the Sort & Filter group. Choose "Copy to another location," type a destination cell reference in the Copy to box, and tick Unique records only. Excel writes a de-duplicated copy to the new spot and leaves the source alone — a distinction that matters when the column feeds a pivot cache or a shared report.

The filter compares entire rows, not single cells, when you feed it a multi-column range. With one column selected, unique records means unique values in that column, which is exactly the single-column case. One quirk: if your header row isn't recognized, Advanced Filter can treat the first data value as a header and drop it from the output, so always include the label row in the selection. A second quirk is that the output is static — edit the source and the copied list won't follow.

Use it when you need a snapshot for review, when the source sheet is locked for editing by someone else, or when you want to eyeball the unique list beside the original before deleting anything. The copy-to destination needs only one cell reference; Excel fills downward and to the right on its own, and it warns you before overwriting existing content at that spot. If the warning appears unexpectedly, your destination range isn't empty.

Method 3: The UNIQUE Function for a Live List

If you're on Microsoft 365 or Excel 2021 or later, UNIQUE is the modern answer and it never touches your source data. Type =UNIQUE(A2:A500) into an empty cell and press Enter; the result spills down automatically, one row per distinct value, in the order they first appear. Add a second argument of TRUE — =UNIQUE(A2:A500,TRUE) — to compare exactly, so "apple" and "APPLE" stay separate. Add a third argument of TRUE to return values that appear exactly once, which filters out every repeated entry rather than keeping the first copy.

The spill is the feature and the trap. If any cell in the spill area already holds content, Excel returns a #SPILL! error and shows nothing, so clear the cells below and beside your formula first. The formula also won't work in Excel 2019 or earlier — there you'll get #NAME?, which is the signal to fall back to Advanced Filter or a helper column. The reference A2:A500 covers only that range; if your data grows past row 500, switch to a whole-column reference or an Excel Table reference like =UNIQUE(Table1[Name]) so new rows join the spill automatically.

UNIQUE pairs naturally with sorting and counting. Wrap it as =SORT(UNIQUE(A2:A500)) for an alphabetical distinct list, or =COUNTA(UNIQUE(A2:A500)) to get a single number: how many distinct values the column holds. That count is often the real question behind "remove duplicates" — you want to know how many customers, SKUs, or email addresses are genuinely there before you decide whether to delete anything at all.

Method 4: COUNTIF Helper Column and Conditional Formatting

When you'd rather see duplicates than delete them, a COUNTIF helper column gives you control. In B2, enter =COUNTIF($A$2:$A$500,A2) and fill down. Every value that appears more than once returns 2 or higher; first occurrences return 1. The absolute dollar signs around the range are essential — without them, the range slides down as you copy and the counts go wrong. From there, filter column B for values greater than 1 and you have every repeated row, ready to review one by one.

Conditional formatting does the same job visually without adding a column. Select the range, choose Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values, and pick a fill color. Excel shades every cell whose value appears more than once in the selection — including the first occurrence, which is a common surprise: the highlight marks all copies, not just the later ones. That's fine for review, misleading if you read the first shaded cell as the "original." Turn the rule off via Conditional Formatting → Clear Rules when you're done.

The COUNTIF route also handles the blank-cell asymmetry mentioned earlier: blanks in the range count as duplicates of each other, returning 2 or more for every empty cell, whereas Remove Duplicates silently exempts truly blank cells from its comparison. If your column has gaps, filter the helper column and handle blanks separately before you delete anything. A related trap: numbers stored as text (a green triangle in the corner) won't match their numeric twins in COUNTIF, so clean those with Text to Columns or VALUE() first.

Method 5: Power Query for Repeating Imports

If the same duplicate-ridden export lands in your inbox every month, Power Query turns cleanup into a one-click refresh. Select your range, go to Data → From Table/Range, and the Power Query Editor opens. Right-click the column header and choose Remove Duplicates; the editor keeps the first occurrence of each value and drops the rest. Then click Close & Load, and the cleaned result arrives as a new table on a worksheet — your source sheet untouched. Next month, replace the source data and hit Refresh All; the dedupe step replays itself.

The editor's step list is the real value: each click becomes a recorded transformation you can rename, reorder, or delete later. That audit trail beats a silent button press, because you can see exactly what was compared and in what order. Power Query also lets you trim spaces and change case before the dedupe step, which fixes the "identical-looking values that won't match" problem at its root rather than after the fact. It's available in Excel 2016 and later on Windows; Mac support arrived in later builds, so confirm the Data tab shows Get & Transform Data before relying on it.

One limitation to plan around: Remove Duplicates in Power Query keeps the first row it encounters in the current sort order, so sort deliberately before that step if "which copy survives" matters — for example, keep the most recent order per customer by sorting dates descending first. The loaded table is also a snapshot until you refresh, so it isn't a live formula like UNIQUE. For a recurring report, that's a feature; for an ad-hoc one-off, the plain Data tab button is faster.

The Trailing-Space and Case Traps That Break Every Method

Every method above compares values literally, which means invisible characters defeat all of them equally. A value pasted from a web form or a CRM export often carries a trailing space, a non-breaking space (CHAR(160)), or inconsistent capitalization, and Excel reads "Acme Corp" and "Acme Corp " as two different entries. The fix is a cleaning pass first: =TRIM(A2) removes ordinary leading and trailing spaces, but not the non-breaking kind, which needs =TRIM(SUBSTITUTE(A2,CHAR(160)," ")). Clean into a helper column, then run your chosen dedupe method on the cleaned values.

Case is method-dependent, and this is worth memorizing. Remove Duplicates and COUNTIF ignore case, so "apple" and "APPLE" are duplicates to them. UNIQUE is case-sensitive by default and keeps both unless you pass TRUE as its second argument. Power Query's Remove Duplicates is case-sensitive too, and you can fix that by transforming the column to lowercase before the step. Advanced Filter ignores case. Same data, five tools, two different answers — which is exactly why you check the result count before trusting it.

Numbers stored as text create a subtler version of the same problem. A column holding 1001 as text and 1001 as a number will show two rows that look identical, and most methods will keep both because the underlying values differ in type. The tell is the green triangle warning in the corner of the cell. Select the column, use Data → Text to Columns and click Finish, or multiply by 1 in a helper column, to force the values into true numbers before deduplicating. Skipping this step is the single most common reason a "duplicate-free" list still fails a lookup later.

Which Method to Pick for Your Situation

Choose by what happens after the cleanup, not by which button looks handiest. If you want the duplicates gone from a pasted list and you've saved a copy of the original, Remove Duplicates is the fewest clicks. If the original must survive — a shared sheet, an audited report, a source feeding other formulas — Advanced Filter or UNIQUE keeps it intact. If the list refreshes monthly from an export, Power Query pays for its setup cost on the second import. If you're not yet sure you want to delete anything, COUNTIF flags without destroying.

The blank-cell rule splits the field again. Remove Duplicates leaves truly blank cells alone as unique entries, so a column with gaps keeps every gap row in the output. UNIQUE returns a 0 for blanks in its spill, which looks odd in a clean list and needs filtering out. COUNTIF counts every blank as a duplicate of the others and flags them all. Decide whether blanks are noise or meaningful before you run anything, and handle them explicitly with a filter.

Speed matters less than it sounds. On a 100,000-row column, Remove Duplicates finishes in about a second in testing on ordinary office hardware, and UNIQUE's spill recalculates just as fast; the slow part is always the review afterward. The real cost is trust: a method you can't audit is worth less than a slower one whose summary message you can read. That's the case for reading Excel's removal count every single time, and for keeping a copy of the source until the output passes a spot-check.

Removing Duplicates Without Deleting the First Copy

A question that comes up constantly: can you delete every copy and keep none? No method above does that as a one-click option, because "duplicate" implies a survivor. UNIQUE's third argument set to TRUE returns only values that appear exactly once — the opposite of what most people expect, and useful when you want to isolate the singletons rather than the repeats. If you genuinely need all copies gone, the practical route is COUNTIF filtered to greater than 1, select the visible rows, and delete them, which removes every occurrence including the first.

The distinction matters in real work. For a mailing list, you want one copy per address, so keeping the first is correct. For fraud review, you might want to pull every row tied to a repeated invoice number and inspect them together — there, filtering on the COUNTIF flag is the right move, and deleting nothing is the right call. Excel doesn't know your intent, so the tool choice is yours to make before the data changes.

Order of survival is another thing to control deliberately. Remove Duplicates keeps the first occurrence in the current row order, so if you need the most recent record to win, sort by date descending before you click the button. Power Query behaves the same way at its step. UNIQUE has no "winner" concept at all — it returns distinct values in first-appearance order, with no row-level attachment, so if other columns must come along with each surviving value, UNIQUE alone won't do it and you need Remove Duplicates or a lookup instead.

Common Misconceptions and What Actually Happens

Three beliefs cause most of the support tickets. The first: "Remove Duplicates removes duplicates across my whole sheet." It doesn't — it compares the columns you tick in the dialog, and if you ticked one, it ignores every other column when judging a row. The second: "It's safe because I can undo it." You can undo before saving; after the workbook is saved and reopened, the deleted rows are gone, and there's no recycle bin inside Excel. The third: "The count it reports is the number of unique values." It reports values found, duplicates removed, and unique values remaining — three numbers, and people routinely read the wrong one.

A fourth misunderstanding concerns the blank cells already covered, and a fifth concerns headers. If My data has headers is left unticked when row 1 is a label, Excel treats the label as a data value and can count it as a duplicate of nothing, distorting your report. If it's ticked when there's no header, the first real value vanishes from the comparison. There's no auto-detect; you tell it, and getting it wrong is silent.

The practical defense is a three-step habit: copy the sheet, run the method, read the summary message. That sequence catches the header mistake, the case mismatch, and the trailing-space trap in one pass, because the removal count won't match your expectation. If the number surprises you, undo, clean the values, and run it again. Excel's dedupe tools are reliable; the inputs are where things go wrong.

FAQ

Does Remove Duplicates work on a single column without deleting neighboring data?

Yes, when you select only that column's cells first. Excel compares the ticked column and deletes the entire row of any later duplicate, so the neighboring cells in that row go with it — which is why you keep a copy of the sheet before committing. If you select the full table instead, untick every column except the one you want compared.

Why did Excel say zero duplicates were removed when I can see identical values?

Invisible characters or type mismatches are the usual cause. A trailing space, a non-breaking space from a web paste, or a number stored as text makes two identical-looking entries compare as different. Run TRIM and SUBSTITUTE to strip spaces, and Text to Columns to fix number types, then repeat the removal on the cleaned column.

Is UNIQUE better than Remove Duplicates?

They solve different problems. UNIQUE builds a live list that updates when the source changes and leaves your data untouched; Remove Duplicates permanently deletes rows from the sheet in one action. Choose UNIQUE when you want an ongoing distinct list on Microsoft 365 or Excel 2021+, and Remove Duplicates for a one-time cleanup where deletion is the goal.

Can I remove duplicates across two columns at once?

Yes — select both columns, open Remove Duplicates, and tick both headers in the dialog. Excel then deletes a row only when the combination of values in both columns has already appeared. That's how you dedupe on a composite key like First Name plus Last Name, where either value alone legitimately repeats.

What happens to blank cells during deduplication?

Remove Duplicates ignores a genuinely empty cell when judging a row, so blank rows survive as unique entries. COUNTIF treats every blank as a duplicate of the others and flags them all, and UNIQUE returns a 0 in the spill for blanks. Filter blanks out explicitly before running any method if they're noise rather than data.

How long does it take on a large column?

On a 100,000-row column, Remove Duplicates typically completes in around a second on ordinary office hardware, and a UNIQUE spill recalculates at similar speed. The time cost is in the review and spot-check afterward, not the operation itself, so budget your effort there rather than worrying about the button press.

Does deduplication work the same in Excel for the web and on Mac?

The Data tab's Remove Duplicates is present in Excel for the web and on Mac, though the web dialog is trimmed and Mac builds vary by version. UNIQUE requires Microsoft 365 or Excel 2021+ on any platform. Power Query's availability on Mac depends on your build, so confirm the Get & Transform Data group appears before relying on it.

Will removing duplicates break my formulas that reference those rows?

Deleting rows shifts everything below them upward, so relative references in other sheets can point at different data afterward. Absolute references to specific cells may now return values from the wrong row. Run the cleanup on a copy, compare the key formula outputs, and only then apply it to the live workbook.