HomeGoogle DocsSpreadsheetRemoving Duplicates Using Data Clean-up Menu in Google Sheets

Removing Duplicates Using Data Clean-up Menu in Google Sheets

Published on

Say goodbye to duplicate rows in your dataset! A built-in Remove Duplicates menu option (command) is available in Google Sheets.

You can check the Data menu in Google Sheets to get a taste of this new feature.

Earlier, you were using UNIQUE or SORTN to meet the above, right? The drawback of these functions is visible.

They are not for altering the source. Instead, to get the result in a new range.

The Unique won’t take a key column (in vertical data) or key row (in horizontal data) for evaluation. It works row-wise or column-wise as a whole.

On the other hand, the SORTN does support the key column. But it may not be easy for a newbie to code.

Here comes the Remove Duplicates Data Clean-up Menu command handy.

Remove Duplicates Data Clean-up Menu

Update:- Now it’s moved under Data > Data Clean-up.

How to Remove Duplicates Using Data Clean-up Menu in Google Sheets

Single Column (Unique Way)

Here are the steps to follow to eliminate repeated values in a column.

Range: A3:A11.

Select the data in A3:A11. It’s up to you whether to include or exclude the header row.

Anyhow, I have included it in my selection.

Remove Duplicates Data Clean-up Menu - Single Column

Then go to Data > Data Clean-up > Remove duplicates.

It will show you the below settings with a note stating the number of rows in your selected range.

Check “Data has a header row.”

Finally, select the Remove duplicates button, and voila!

Google Sheets will pop up a message stating the number of duplicates found and removed.

Settings page

Formula Alternative to Data Clean-up Single Column Remove Duplicates Menu Command: =unique(A3:A11)

Multiple Columns (Unique Way)

Here is the most valuable part of this command.

When you have multiple columns, you can remove repeated records based on all columns (Unique way) or selected columns (Sortn way).

Here is an easy-to-follow example (Unique way).

My two-column dataset contains first names in column A and last names in column B.

AB
1First NameLast Name
2TheresaAlvarez
3TheresaAlvarez
4JamieWilkins
5JamieCopeland

In this sample data, row # 3 is the repetition of row # 2.

Row # 5 is not a duplicate of row # 4 because last name mismatch.

Here we can use the Remove Duplicates Data Clean-up Menu in Google Sheets as below.

Select A1:B5 and go to the Data menu and select the said command.

Follow the screenshot.

Settings 2

Formula Alternative to Data Clean-up Multiple Columns Remove Duplicates Menu Command: =unique(A1:B5)

Remove Duplicates Data Clean-up Menu in Selected Columns (Sortn Way)

This sample data shows the unit price of some fruit items.

The product names repeat since different vendors submitted the quote, and the same vendor has multiple quotes (revision).

ABC
1Product NameUnit PriceVendor
2Apple$4.00Vendor A
3Apple$4.00Vendor B
4Orange$3.50Vendor X
5Orange$3.00Vendor Y
6Apple$4.50Vendor A
7Apple$4.00Vendor C

Here are a few examples to help you learn how to use the Remove Duplicates Data Clean-up menu command in selected columns.

1. Picking the Lowest Priced Products from Multiple Quotes

To do this, first, select the range A1:C7.

Then sort the data in ascending order from Data > Sort range > Advanced range sorting options.

Sorting - Menu Settings

Again select the same range and apply Data > Data clean-up > Remove duplicates.

In the dialog box that subsequently appears, select only column A.

Equivalent Sortn Formula: =sortn(sort(A2:C7,1,1,2,1),9^9,2,1,1)

Note:- If you use the formula, manual sorting is not required. It’s (SORT) already coded within.

Related:- SORTN Tie Modes in Google Sheets – The Four Tiebreakers.

2. Picking the Highest Priced Products from Multiple Quotes

Here you can simply follow all the above steps except the sort. Here sort the data in descending order.

Equivalent Sortn Formula: =sortn(sort(A2:C7,1,1,2,0),9^9,2,1,1)

3. Delete Duplicates in Remote Columns Using the Data Clean-up Command

For this example, I am using new sample data.

Assume I want to remove duplicates in two distant columns, i.e., columns A and C (please refer to the image below).

The purpose of doing so is to remove the quotes for the same product from the same vendor multiple times.

In the Remove duplicates menu, select columns A and C.

Delete or Remove Duplicates in Two Distant Columns

Here also, we can use Sortn, and here is that surprising formula.

=sortn(A2:C4,9^9,2,A2:A4&C2:C4,1)
    Prashanth KV
    Prashanth KV
    Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

    Creating Sequential Dates in Equally Merged Cells in Google Sheets

    Do you know how to create sequential dates in equally merged cells across a...

    Running Total By Month in Excel

    This tutorial demonstrates how to calculate the running total by month in a range...

    SORT and SORTBY – Excel Vs Google Sheets

    While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

    Get Top N Values Using Excel’s FILTER Function

    When using the FILTER function in Excel to extract the top N values, it's...

    More like this

    Creating Sequential Dates in Equally Merged Cells in Google Sheets

    Do you know how to create sequential dates in equally merged cells across a...

    Interactive Random Task Assigner in Google Sheets

    You have multiple tasks and multiple people. Here's a fun way to randomly assign...

    Google Sheets Bar and Column Chart with Target Coloring

    To color each data point in the column or bar chart according to the...

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here

    This site uses Akismet to reduce spam. Learn how your comment data is processed.