USE CASE · IN YOUR BROWSER

Find duplicate rows in Google Sheets and keep a clean copy

Choose a spreadsheet, the tab to check and the column that should be unique. AIVane reads the rows and writes a result tab listing each row with its key, whether it is a duplicate and how often the key occurs. If you name a third tab, it also writes a copy that keeps the first row of each key. Your original tab is not changed. Our test sheet had ten names; Alice appeared three times and Bob twice.

How it works

  1. Connect Google Sheets and choose the spreadsheet. In AIVane, open Settings, Connections, connect Google Sheets and use Choose existing spreadsheet to pick the file. AIVane can only open spreadsheets you choose there or that it created.
  2. Copy the automation and enter the details. Choose Try it in your browser, then Run. Paste the spreadsheet link, enter the tab name and the number of the column that should be unique, where 1 is the first column, and name the result tab.
  3. Review before you delete anything. Read the result tab first. When you are happy, use the optional de-duplicated tab or delete the extra rows from the original yourself.

Try it on the practice site

  1. 01

    Open Remove duplicates in Google Sheets

    After you sign in from the Try it link, the automation is in My automations with four steps: read the worksheet, count each key, mark duplicates and save the result. Nothing runs in a browser; it reads and writes through your Google Sheets connection.

    The automation Remove duplicates in Google Sheets in My automations: Ready, 4 steps, Read the worksheet, Count each key, Mark duplicates and Save the result
  2. 02

    Enter the spreadsheet and run it

    Choose Run. Paste the link of your Google Sheet; the field reminds you to choose it under Settings, Connections first. Source worksheet is Sheet1, Key column number is 1 and Result worksheet is Duplicate check. Leave De-duplicated worksheet empty to skip the clean copy, then choose Start run.

    The Run automation dialog in AIVane Cloud with an empty Google Sheet link field, Source worksheet Sheet1, Key column number 1 and Result worksheet Duplicate check
  3. 03

    Open the Duplicate check tab

    Our run took 14 seconds. The new Duplicate check tab listed all ten rows with row, key, is_duplicate and occurrences. Every Alice row was marked yes with 3 and every Bob row yes with 2; Carol, Dave, Eve, Frank and Grace were no with 1.

    The Duplicate check tab in Google Sheets: columns row, key, is_duplicate and occurrences, with Alice marked yes three times and Bob twice

How other methods compare

Conditional formatting
A COUNTIF rule colours duplicates in place, which is the usual way to highlight them. It does not give you a list or a clean copy, and the rule has to be set up for each sheet.
Data cleanup, Remove duplicates
Google Sheets can delete duplicate rows directly. It changes your data at once; the automation first shows you which rows are affected and leaves the original untouched.
UNIQUE and COUNTIF formulas
Formulas work well inside one sheet. The automation repeats the same check on any spreadsheet you choose and can run on a schedule.

Frequently asked questions

Does it highlight duplicates in colour?

No. It marks them in a separate tab with an is_duplicate column and the number of occurrences. To colour them in place, use conditional formatting with a COUNTIF rule.

Does it delete rows from my sheet?

No. Your source tab stays as it is. Every occurrence of a repeated key is marked yes, including the first, so you decide which one to keep. The result tab, and the optional clean-copy tab, are replaced on each run, so do not use those tab names for other data.

How are duplicates decided?

By exact matches in the key column you choose. Different spelling, extra spaces or upper and lower case count as different values. Empty keys are counted as one shared value.

Can I check duplicates across several columns?

This automation uses one key column. Add a helper column that joins the columns you care about, then use it as the key.

Is it free to use?

Free includes 3 saved automations, local runs of up to 15 minutes each and a one-time 10-minute AIVane Cloud trial. Our ten-row check used 21 seconds of cloud time.

Want a hand with this?

Our first users can ask for hands-on help: one website task, one sheet, and a week of watching it run.

Get help automating this task

Last verified 2026-11-28 with the AIVane web workspace at app.aivane.net (production server of 2026-11-28).