What Most People Miss About Excel Remove Duplicates

Why does Excel keep Sarah Chen’s $45,200 entry but delete her identical $45,200 record two rows down? Why does sorting before deduping change the outcome entirely? Why does ‘Remove Duplicates’ ignore your manually sorted order unless you sort first?

Quick Answer

Excel always keeps the first occurrence of each unique row (scanning top-to-bottom) and deletes all subsequent duplicates—regardless of values in other columns. It does not choose based on highest value, most recent date, or alphabetical order. The position in the list—not content—decides what stays.

All the Methods

MethodStepsBest ForLimitations
Data Tab → Remove DuplicatesSelect range (e.g., A1:D12), Data → Remove Duplicates → choose columns → OKFast cleanup of contiguous tables with headersIgnores hidden rows; can’t preview which rows will be deleted
Advanced Filter (In-Place)Data → Advanced → check 'Unique records only' → OKPreserving original layout while extracting uniquesOverwrites original data if no destination set; no undo after filtering
=UNIQUE() functionEnter =UNIQUE(A2:D12) in a blank cell (e.g., F2)Dynamic, spill-based lists that auto-update with source changesRequires Excel 365 or 2021; won’t modify original table
Power Query (Get & Transform)Data → From Table/Range → Home → Remove Rows → Remove DuplicatesLarge datasets, repeatable workflows, multi-step cleaningAdds latency for small tasks; requires loading into Power Query editor
Conditional Formatting + Manual DeleteHighlight duplicates → sort by color → delete red rows manuallyFull visual control over which duplicates to keepTime-intensive; error-prone at scale

Method 1 Deep Dive

Let’s walk through the classic Data → Remove Duplicates workflow using this realistic sales log (A1:D12):

NameCompanyAmountDate
Sarah ChenAcme Corp$45,2002024-03-15
James WuNexaTech$32,8002024-03-16
Sarah ChenAcme Corp$45,2002024-03-18
Maya PatelStrata Labs$29,5002024-03-17
Sarah ChenAcme Corp$45,2002024-03-19
Liam O’SullivanVeridian Inc$51,1002024-03-20

Select A1:D12. Go to the Data tab. Click Remove Duplicates. In the dialog, ensure “My data has headers” is checked. Uncheck Date — we want to treat Sarah’s three entries as duplicates *only* on Name + Company + Amount. Click OK.

The status bar flashes: “12 rows found. 2 duplicate(s) removed.” That means Excel kept A1:A12’s first occurrence of each combo — so row 1 (Sarah, Acme, $45,200) stays. Rows 3 and 5 vanish. You’re left with 10 rows.

Here’s the counterintuitive bit: If you had sorted this table by Date descending *before* clicking Remove Duplicates, row 5 (2024-03-19) would become the first occurrence — and rows 1 and 3 would be deleted instead. Excel doesn’t “choose” — it obeys order. Always.

Keyboard shortcut? Yes: Alt + A + M (press Alt, then A, then M — don’t hold them). Try it on your next dataset.

Method 2 Deep Dive

Now let’s use Advanced Filter — ideal when you need to extract uniques *without altering* your source. Keep your original A1:D12 intact. Click any cell inside it. Go to Data → Advanced.

In the dialog, select “Filter the list, in-place”. Check “Unique records only”. Leave “List range” auto-filled as $A$1:$D$12. Click OK.

Excel hides all but the first instance of each duplicate group. You’ll see row numbers like 1, 2, 4, 6, 7, 9, 10, 11, 12 — with rows 3 and 5 now hidden. This isn’t deletion — it’s filtering. To copy these visible rows elsewhere: select A1:D12 → Ctrl + C → right-click → Paste Special → Values.

Why use this instead of Remove Duplicates? Because it’s reversible. Press Ctrl + Shift + L to toggle the filter off — and your full dataset reappears instantly. No undo chain required. Also, unlike Remove Duplicates, Advanced Filter respects manual row hiding: if you hide row 4 yourself first, it won’t appear in the filtered result.

The beauty of this approach is its non-destructiveness — perfect for auditing or when stakeholders demand full traceability.

Cheat Sheet

ActionShortcut / StepsNotes
Open Remove DuplicatesAlt + A + MWorks only when a cell in your data range is selected
Open Advanced FilterAlt + A + QEnsure headers are present — dialog auto-detects them
Apply UNIQUE() formula=UNIQUE(A2:D12) in F2Spills results automatically; includes header if source does
Toggle AutoFilterCtrl + Shift + LCritical for checking Advanced Filter output or restoring visibility
Sort by column (ascending)Select column → Data → Sort Smallest to LargestDo this *before* Remove Duplicates if you want newest or highest-value entries preserved
Highlight duplicatesHome → Conditional Formatting → Highlight Cells Rules → Duplicate ValuesUseful for spot-checking before mass removal
Tom Bradley

Tom Bradley

Tom has 15 years of experience in office management and supply chain optimization. He shares practical tips for running efficient workplaces.