The Wayback Machine - https://web.archive.org/web/20240623030531/https://www.geeksforgeeks.org/how-to-remove-duplicates-in-google-sheets/
Open In App

How to Remove Duplicates in Google Sheets

Last Updated : 17 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Google Sheets as a part of Google Workspace, is one of the popular cloud-based spreadsheet applications widely used for data management and analysis. It allows users to create and edit data on spreadsheets and enables us to share spreadsheets online which can be accessible from any device with internet access.

However as we work with large data sets, duplicate data can often appear which can lead to confusion, incorrect results, and cluttered sheets. So in this article, we’ll learn How to Remove Duplicates from our Google Sheets.

How to Remove Duplicates in Google Sheets

How to Remove Duplicates in Google Sheets

How to Remove Duplicates In Google Sheets

Google Sheets offers simple yet powerful features to help us remove duplicates efficiently and avoid cluttering. There are two ways to remove duplicates from Google Sheets efficiently. Let’s discuss both ways one by one.

  1. Using Data Cleanup.
  2. Using the Google Sheets function.

Remove Duplicates In Google Sheets Using Data Cleanup

Data cleanup in Google Sheets refers to the process of organizing, refining, and standardizing data with spreadsheets to improve its accuracy, consistency, and usability. Data Cleanup involves tasks like removing duplicates, correcting errors, formatting the data, and dealing with empty cells. This process is important to ensure that data is in an appropriate state and to maintain the quality of data.

As you can see there are two duplicates rows in the table below – Finland And Sweden.

Dataset

Google Sheet (list of countries)

1. Deleting Duplicates from all rows and columns

It means it will delete a row if both its country and happiness index value is same as previous.

Step 1: Select Data Range

Open your sheet from which you want to remove duplicates and select the cells from which you want to remove duplicates. In this case we have selected the entire table.

Select Data Range

Selecting Data Range

Step 2: Select Data Cleanup And Remove Duplicates

Go to Data menu at the top as shown on your desktop screen. As you click on data tab a drop down menu will appear with options and select Data Clean-up option from those and then select Remove Duplicates.

Data -> Data Clean-up> Remove Duplicates

Select Data Cleanup And Remove Duplicates

Remove Duplicates

Step 3: Configure Data Cleanup

In the pop up box, select {Data has Header Row} if your selection contains header rows like country and happiness index. Then Select {Select All} as we have to remove duplicates from all.

Configure Data Cleanup

Step 4: Remove Duplicates

Click on Remove Duplicates and it will remove duplicates from our table. It will show a message indicating how many rows have been removed. In this case there were 2 duplicate rows that have been removed.

Remove Duplicates

Removing Duplicates

2. Deleting Duplicates Based on Particular Column

In the previous step if we have a duplicate country but their happiness index is different then it will not be removed, For example – here we have a duplicate value Finland but its Happiness Column is different so it will not be removed .In order to remove it we have to remove duplicate based on only the Country column.

Deleting Duplicates Based on Particular Column

Deleting Duplicates Based on Particular Column

Step 1: Select Data Range

Select all the cells from which you want to delete duplicates in your document.

Select Data Range

Selecting the data range

Step 2: Select Data Cleanup

Select Data-> Data Clean–up -> Remove Duplicates

Select Data Cleanup

Step 3: Configure Remove Duplicates

Select the column to analyse for duplicates. In this case we have only selected Column A (Country)

Configure Remove Duplicates

Configuring Remove Duplicates Dialogue Box

Step 4: Remove Duplicates

Click on Remove Duplicates. It will remove the duplicate cell Finland and its happiness index .

Remove Duplicates

How to Remove Duplicates Using Google Sheet Function

Functions in Google Sheets are built-in formulas that perform specific tasks and calculations. They are used to manipulate data, perform mathematical operations, analyse information and automate tasks in Google Sheets. Google sheet has a UNIQUE function which we can use to create a separate table which is dynamic (means it will automatically change when we change the original data) based on the columns. However it will not remove the duplicates but will show a different table which has only Unique Values.

Step 1: Select the Starting Cell

Select a cell which will be the starting point of our new table. Select a cell and put your cursor on the selected cell. In this case cell D3 has been selected.

Step 2: Enter The Unique Formula

In the cell write ” =UNIQUE(COLUMN_START: COLUMN_END) “. Replace COLUMN_START and COLUMN_END with your column start and end.

In this case I wrote =UNIQUE(A2:B10)

Enter The Unique Formula

Step 3: Press Enter

After writing the formula you need to press the Enter key and now you’ll see a separate table has been created from the cell you choose which does not contains any duplicates.

Press Enter

Press the Enter Key to Remove Duplicates

Conclusion

By following the mentioned steps you’ll be able to remove the duplicates in your Google Sheets , improve the quality of data and maintain a well organised spreadsheet. Do remember that the steps in this article may slightly differ depending on the version of the Google Sheet you are using but the overall and general process will remain the same.

How to Remove Duplicates in Google Sheets – FAQs

How do I quickly delete duplicates in Google Sheets?

To quickly delete duplicates in Google Sheets:

  • Select the range of cells you want to check for duplicates.
  • Click on Data in the menu.
  • Choose Data cleanup and then Remove duplicates.
  • Confirm the columns to analyze and click Remove duplicates.

This will delete any duplicate rows, keeping only unique entries.

Is there a way to find duplicates in Google Sheets?

Yes, to find duplicates in Google Sheets:

  1. Select the range of cells you want to check.
  2. Click on Format in the menu.
  3. Choose Conditional formatting.
  4. Under Format cells if, select Custom formula is.
  5. Enter the formula =COUNTIF(A:A, A1) > 1 (adjust column reference as needed).
  6. Choose a formatting style and click Done.



Similar Reads

Create a BMI Calculator using Google Forms and Google Sheets
How to Create BMI Calculator in Google Forms What is BMI?How to Create a Google Form for BMI CalculationCreating a Google Form for BMI CalculationEstablishing the BMI calculatorBMI Calculations in Google SheetsConclusionFAQS on BMI Calculator Tired of those confusing weight charts and old-fashioned BMI calculators? Want a quick and easy way to see
5 min read
How to Insert a Google Sheets into a Google Docs
Have you ever wanted to add a Google Sheets to your Google Docs document? It is very easy to do and can make your documents more informative and organized. In this article, we'll show you a step-by-step procedure for how to insert a Google Sheets spreadsheet into your Google Docs document. Let’s get started for the same! Insert a Google Sheets into
4 min read
How to Add Bullet Points in Google Sheets
Insert Bullets Into Google SheetsSelect the Cell to Insert Bullet PointPress F2 to enter Edit mode.Press ALT + 7 to enter a bullet into the cell.Add Text in the CellAre you ready to take your Google Sheets skills to the next level? Whether you're a spreadsheet novice or a seasoned pro, there's always something new to learn that can enhance your pro
7 min read
How to Insert Multiple Rows in Google Sheets
How to Add Rows in Google Sheets - Quick StepsOpen Google SheetSelect the RowClick on the Insert tabSelect Insert Row Above or BelowRow AddedIn the world of spreadsheet management, the need to accommodate a growing dataset is a common challenge. Whether you're managing inventory, tracking changes over time, or organizing a list, knowing how to inse
7 min read
How to Insert Multiple Columns in Google Sheets
Adding columns to your Google Sheets document is similar to expanding the canvas of your data masterpiece. In the realm of data management and analysis, having sufficient space for your information to breathe and thrive is essential. Whether you're dealing with financial statements, tracking project progress, or curating vast databases, the need fo
7 min read
How to Change Cell Height and Width in Google Sheets
Are you tired of struggling with cramped, hard-to-read data in your Google Sheets documents? Whether you're a seasoned spreadsheet pro or a newcomer to the world of data management, one of the essential skills you need to master is the art of resizing cells. With the power to control row heights and column widths at your fingertips, you can transfo
9 min read
How to Add Trendline in Google Sheets
In general, a trendline is a straight or curved line that provides a visual representation of the data points of the data. The trendlines are used in various industries like finance, science, and Data Analysis Companies. The uses of trendlines are as follows They are used to identify the whole trend direction of the data. Whether it's upward, downw
5 min read
How to Add Error Bars in Google Sheets
Google Sheets is the popular online spreadsheet editor from the house of Google. It provides a simple, decluttered interface and a wide range of features. Also, you can easily create charts and graphs in Google Sheets from the entered data. Error bars are the visual representation of errors in a graph. If we are creating a chart of data, that has a
6 min read
How to Add Borders in Google Sheets
How to Add Borders in Google Sheets - Quick StepsOpen Google SheetsSelect dataSelect BorderSelect Border Style >> Click "Apply" Ready to level up your Google Sheets game? Adding borders isn't just about looks – it's a neat way to organize and highlight your data. Imagine your info neatly framed and sections clearly defined. In this guide, we'
4 min read
How to Create a Digital Planner in Google Sheets
Welcome to the world of high-tech planning! Today, we're diving into the fun of making your own Digital Planner using Google Sheets. Say goodbye to paper mess and hello to a stylish and super-organized way of managing your schedule and goals. No worries if you're new to digital planning – we've got your back! We'll guide you through using Google Sh
6 min read
Article Tags :