ExcelTool.io

Remove Duplicates in Excel

Upload an Excel workbook, choose matching columns and rules, keep the first or last occurrence, and download a clean copy without uploading the file.

Drop your file here or click to upload

Supports .xlsx, .xls, .xlsm, .xlsb · up to 50MB · or paste a file from your clipboard

or download messy-data.xlsx

How a Duplicate Is Decided

Every data row is reduced to a key. If you tick no match columns the key is built from all of the row's cells; if you tick some, the key is built from only those, so two rows can differ everywhere else and still be duplicates. Each cell is converted to text, its surrounding spaces are removed unless you say otherwise, and its letters are lowercased unless you turn case sensitivity on. Rows with equal keys form a group, and all but one member of each group is deleted.

Customer IDEmailPlanMatch on Email, Keep last
C-1042maya@example.comBasicremoved
C-2048grace@example.comProkept
C-1042Maya@Example.comProkept

The first and third rows share an email once case is ignored, so they are one group; Keep last retains the later row and its Pro plan. Switching to Keep first would have retained the Basic row instead. Either way the two surviving rows come out in sheet order.

Keep First or Keep Last

This is the only decision that changes which data you end up with, and it is worth being deliberate about. Keep first is the safe default and matches what Excel's own Data > Remove Duplicates does. Keep last is what you want when rows arrive in chronological order and later rows are corrections - the newest address, the latest status. Neither option merges the rows: the values in the discarded row are gone, so if each duplicate holds different fragments of a record, deduplicate on a narrower key and reconcile the survivors by hand.

Matching Runs on Cleaned Values

Duplicate removal is the last step of the cleanup pass, so it sees whatever the earlier rules produced. Trimming and the Collapse repeated spaces rule run first; if a Text case transformation is set, it has already normalized the letters before any case-sensitive comparison happens - meaning UPPERCASE plus Match uppercase and lowercase separately will never find a case difference to distinguish. To make padding significant you have to untick both Trim leading/trailing spaces at the top and Ignore spaces at the start and end in the duplicate rules. Fill blank cells also runs first, so filling blanks with N/A makes every previously-blank cell in a match column collide.

Reading the Evidence Panel

After Apply Cleanup the report states how many rows were retained and removed, how many of the removals were duplicates, and - in the panel below - whether matching used the whole row or the specific columns you picked, naming them. That panel is the check to make before you download: if it says whole-row when you meant to match on Email, the tick simply did not register. The preview shows the first 30 surviving rows, and the download is a new workbook - your original file is never modified.

When a Different Tool Fits Better

Deleting rows is irreversible in the downloaded copy, so if you are not yet sure what is duplicated, start with Find Duplicates in Excel, which marks and counts every occurrence without removing anything. To know how many distinct records you should end up with, use Count Unique Values. When the duplicates are across two lists rather than inside one, Compare Two Columns is the right shape, and if the duplicates came from several files, merge them with Excel Merge first and dedupe once at the end.

Frequently Asked Questions

Related Tools