Skip to the content
Olbo

Guides

How to remove duplicate rows from a CSV file

To remove duplicate rows from a CSV, open it in Olbo's Sheets, press Tidy, then press the button that counts them, such as Drop 12 duplicates. A row is a duplicate when every cell matches an earlier row exactly, and the first copy is the one kept. To count rows as the same when one column matches, such as an email address, use Dedupe rows on this in that column's menu. Nothing is uploaded.

Open Sheets

Step by step

  1. Open Sheets and press Open a spreadsheet, or drag the CSV onto the window.Free opens files up to 2 MB.
  2. Press Tidy.A bar opens. Each button in it says how much it would change before you press it, or that there is nothing to do. On a phone, Tidy is under More.
  3. Press the Trim button first, such as Trim 4 cells, unless it reads Nothing to trim.It takes spaces off the start and end of every cell, so Ada and Ada with a space after it become the same.
  4. Press the button that shows how many duplicates it found, such as Drop 12 duplicates.Every row that repeats an earlier one is removed, and the first copy stays where it was. With none, the button reads No duplicate rows.
  5. To match on one column instead, open that column's menu and press Dedupe rows on this.The menu is behind the dots beside the column's name. Rows with the same value in that column count as one, and the first is kept.
  6. Press Save CSV.Undo puts back anything you removed. On a phone the button reads Save.

What counts as a duplicate row

Two rows match only when every cell is the same, capital letters and spaces included. Ada and ada are different rows, and so are Ada and Ada with a space after it until you trim.

If capital letters should not matter in a column, such as email addresses, open its menu and press lower before you dedupe. That changes the column itself, so it is saved in lower case.

When you dedupe on one column, the rows where that column is empty all count as the same, so only the first of them stays. Fill those cells in first if they are different people.

Checking what was removed

The count is on the button before you press it. Afterwards, What you changed, in the Details panel, lists each step, such as dropped 12 duplicate rows, and Undo brings the rows back. Back to the original, in the same panel, returns to the file as you opened it.

Nothing is written to the file you opened. Your changes go to a copy named like orders.edited.csv: in Chrome and Edge on a computer and in the Olbo apps it is in your Olbo folder and keeps up as you work, until Save CSV asks where to put it; other browsers download it when you press Save CSV.

More guides

Olbo is an office suite that runs in your browser. Your files are read on the machine you are sitting at and are never uploaded. See all the tools.