Data cleaning

How to remove duplicates based on one column

Delete rows that repeat an email, ID or company name while keeping the first full row. Works on CSV and Excel files in your browser, free, no upload.

DealMahal team · Published 6 December 2026 · 5 min read

To remove rows that repeat a value in one column, such as an email address or an order ID, choose only that column as the one to compare. Every row after the first with the same value is dropped, and the first row is kept with all its other columns intact. Our free Remove duplicates tool does this for CSV and Excel files in your browser, and tells you exactly how many rows it removed.

Why "one column" is different from a normal dedupe

Most duplicate removers compare whole rows. Two rows only count as duplicates when every cell matches. That misses the duplicates that cause real problems:

EmailNameSigned up
ana@example.comAna2026-03-02
ana@example.comAna R.2026-09-14

These rows are not identical, so a whole-row dedupe keeps both, and Ana gets two newsletters. Comparing on Email alone treats them as one person.

Step by step

  1. Open Remove duplicates.
  2. Choose or drop your file. CSV, TSV, TXT, XLSX, XLS and ODS all work, up to 50 MB. You can also paste data.
  3. If it is a workbook with several sheets, pick the sheet.
  4. Under Columns to compare, click Clear, then tick only the column that defines a duplicate (for example Email).
  5. Leave Ignore upper/lower case and extra spaces on, unless capital letters really make two values different in your data.
  6. Read the message: "Removed N duplicate rows. M rows left."
  7. Download as CSV, Excel or JSON. The file name ends in "-deduplicated" so you do not mix it up with the original.

Which row survives, and how to control it

The tool keeps the first row for each value, in file order. That simple rule gives you control:

  • Keep the newest record: sort the file by date, newest first, before you dedupe.
  • Keep the most complete record: sort so rows with a phone number or company name come first.
  • Keep the record from your main system: if you merged exports from several tools, put the main system's file first.

If you merge several files first with our Merge CSV tool, the merged rows keep the order you added the files in, so the first file you drop in wins ties.

What "ignore case and extra spaces" really catches

With the option on, before comparing, each value is lowercased, spaces at the start and end are removed, and runs of spaces inside the value are reduced to one. So all of these count as the same company:

  • ACME Ltd
  • acme ltd
  • Acme Ltd (two spaces inside and one at the end)

It does not treat these as the same, because they are genuinely different strings:

  • Acme Ltd and Acme Limited
  • 007 and 7
  • ana@example.com and ana@example.com. (trailing full stop)

For those, clean the column first (for example with find and replace in Excel), then dedupe.

Watch out for blank cells

Blank values are compared like any other value. If you compare on Email and 40 rows have no email at all, those 40 rows count as duplicates of each other: the first is kept and the other 39 are removed, even if they are 39 different people. Two ways around it:

  • Split first. In your spreadsheet, move the rows with a blank email into their own file, dedupe the rest, then add the blank rows back.
  • Compare on a second column too. Tick Email and Name, so blank email rows only match when the name also matches.

With "Ignore upper/lower case and extra spaces" on, a cell that holds only spaces also counts as blank.

Comparing on two or more columns

Sometimes one column is not enough. A person can appear twice legitimately if they bought two different products. Tick both Email and Product and only rows that repeat both values are removed. The rule is: a row is a duplicate when every ticked column matches an earlier row.

Common uses

FileColumn to compareWhy
Newsletter or event sign-upsEmailOne message per person
Merged CRM exportsEmail, or company domainAvoid two owners chasing one account
Order export with repeated linesOrder IDOne row per order for counting
Lists of companies hiring, exported weeklyCompany name or company keyOnly new companies each week
Product catalogue from several suppliersSKUOne price per product

Check the result before you replace the original

The message "Removed N duplicate rows. M rows left." is your first check: N plus M is the number of data rows the tool read. Completely empty rows are skipped when the file is read, so they never count as duplicates. Then spot check one value: sort the original by the compared column, find a value you know repeats, and confirm the cleaned file has exactly one row for it, and that it is the row you meant to keep. The download is a new file, so the original is untouched until you decide to replace it.

Doing it in Excel instead

Excel's Data > Remove Duplicates also lets you pick columns, and it also keeps the first row. Two differences matter in practice: Excel does not ignore extra spaces, so acme and acme (with a trailing space) stay as two rows, and it edits your sheet in place, so save a copy first. In Google Sheets, Data > Data cleanup > Remove duplicates works the same way, with an option for treating the first row as headers.

Keep your codes intact

Downloading to Excel keeps leading zeros in IDs such as 00457, and long numbers of 16 or more characters stay as text so no digits are lost. If you are moving the cleaned file back into Excel by double-clicking a CSV, read how to convert CSV to Excel and keep leading zeros first.

Frequently asked questions

Which row is kept when duplicates are found?

The first one, in the order the rows appear in your file. Later rows with the same value in the chosen columns are removed. Sort your file first if you want a particular row to win.

Can I remove duplicates based on email only?

Yes. Clear all columns, tick only Email, and rows with the same email count as duplicates even if their other columns differ.

Will 'North Star Inc' and 'north star inc ' count as the same?

Yes, with the option 'Ignore upper/lower case and extra spaces' turned on, which it is by default. Turn it off for an exact, case-sensitive match.

Does it change my original file?

No. It reads your file in the browser and gives you a new download. Your original stays as it was.

Can I see how many rows were removed?

Yes. After every change of columns or options, the tool shows how many duplicate rows were removed and how many rows are left.

Spotted an error? Write to dealmahal.official@gmail.com.

Questions or corrections: dealmahal.official@gmail.com.

Keep reading

All posts