Remove duplicates and clean up data in Sheets
Remove duplicate rows from a table in Foxcolab Sheets, choose which columns decide a duplicate, and tidy text with Trim whitespace, case changes and Split text to columns.
Updated 2 min read
In short
To remove duplicates in Foxcolab Sheets, select the table, choose Data → Data cleanup → Remove duplicates…, tick the columns that must match, turn on Data has a header row if needed, and click Remove duplicates. Sheets keeps the first row of each set and tells you how many it removed. Run Trim whitespace first so stray spaces don't hide duplicates.
Key takeaways
- Data → Data cleanup → Remove duplicates… works on the cells you select.
- Tick the columns that decide whether two rows are the same. The first row of each set is kept.
- Text is compared without regard to capital letters, but extra spaces count, so trim first.
- The other clean-up tools are Trim whitespace, UPPERCASE, lowercase, Title Case and Split text to columns….
- To see duplicates before deleting anything, highlight them with the Duplicate values rule in conditional formatting.
Last reviewed 3 December 2026
To remove duplicates in Foxcolab Sheets, select your table and choose Data → Data cleanup → Remove duplicates…. You decide which columns have to match for two rows to count as the same, and Sheets keeps the first row of each set. Sheets is end-to-end encrypted, and the clean-up runs in your browser on your own copy of the data.
Remove duplicate rows#
Select the whole table
Drag across every column of the table, including the header row. Only the cells you select are changed, so leave nothing out.
Open Remove duplicates
Choose Data → Data cleanup → Remove duplicates….
Mark the header
If the first row holds column names, turn on Data has a header row so it's left alone.
Choose the columns that must match
Every column is ticked to start with, so only rows that are identical in every column are removed. Untick the columns that can differ.
Remove them
Click Remove duplicates. A message tells you how many rows were removed, or says No duplicate rows found.
The rows that stay move up to close the gaps, and the empty rows end up at the bottom of your selection. If you change your mind, press ⌘Z (Ctrl+Z on Windows).
Choosing columns: an example#
Say a contact list has Name, Email and Company columns, and the same person appears twice with a different spelling of the company. If you keep all three columns ticked, both rows stay, because the company differs. Tick only the Email column, and Sheets keeps the first row for each email address and removes the rest.
Clean up the text first#
Duplicates often hide behind small differences. Sheets ignores capital letters when it compares text, so ACME Ltd and Acme Ltd match. Spaces do count, so Acme Ltd with a trailing space doesn't match Acme Ltd. Before you remove duplicates, select the columns and run these from Data → Data cleanup:
| Tool | What it does |
|---|---|
| Trim whitespace | Removes spaces at the start and end of each cell and turns double spaces into single ones |
| UPPERCASE, lowercase, Title Case | Changes the capitals of typed text. Formulas are left alone |
A number and the same digits stored as text don't match either. If an ID column mixes them, give the column one number format before you start.
Split text into columns#
Data → Split text to columns… breaks one column into several, such as Lee, Dana into a surname and a first name. It splits the first column of your selection and fills the columns to its right.
- Select the cells to split.
- Choose Data → Split text to columns….
- Pick a separator: Detect automatically, Comma, Semicolon, Tab, Space, Pipe or Custom.
- Click Split.
Each part is trimmed and read the way it would be if you typed it, so numbers and dates become real values.
Find duplicates without deleting them#
To review duplicates before you remove anything, choose Format → Conditional formatting and use the Duplicate values rule to color them. See Use conditional formatting in Sheets. To list each unique row somewhere else and keep the original, type =UNIQUE(A2:C200) with your own range in an empty cell. More on functions is in Use spreadsheet formulas and functions in Sheets.
You need edit access to use Data cleanup. People with view or comment access see it greyed out.
Related#
Frequently asked questions
Which row does Sheets keep?
The first one, counting from the top of your selection. Later rows with the same values in the ticked columns are removed, and the rows that stay move up to close the gaps.
Can I undo Remove duplicates?
Yes. Press ⌘Z on a Mac or Ctrl+Z on Windows, or click Undo in the toolbar, which reads Undo remove duplicates right after you run it.
Why weren't two rows that look the same removed?
Something in a ticked column differs. The usual causes are a space at the start or end of a cell, a double space in the middle, or a number in one row stored as text in the other. Run Data cleanup → Trim whitespace and check the number formats, then try again.
Can I list unique rows without deleting anything?
Yes. In an empty cell, type =UNIQUE(A2:C200) with your own range. The unique rows spill into the cells below, and your original data stays as it is.
Did this answer your question?
One click, no account needed.
Still need help?
Our support team can take it from here.