Managing large datasets in Google Sheets can quickly become overwhelming, especially when duplicates clutter your information. Whether you’re working with financial reports, inventory lists, or survey results, identifying and removing duplicates is a crucial step in maintaining clean, accurate data. Thankfully, Google Sheets provides powerful built-in tools and functions, as well as add-ons, to simplify this task.
This guide discusses the most effective methods to remove duplicates in Google Sheets, ranging from the basic “Remove Duplicates” tool to advanced options like formulas and add-ons, ensuring you can handle any data-cleaning scenario with confidence.
How To Remove Duplicates in Google Sheets
- Select the dataset with the duplicate data.
- Go to the โDataโ > โData cleanup.โ
- Click on the โRemove duplicatesโ option.
- Ensure โSelect Allโ is selected (in the ‘Columns to analyze‘ section).
- Click on the โRemove duplicatesโ button.
- Click โOKโ in the prompt.
How To Delete Repeats in Google Sheets Using the ‘Remove Duplicates’ Tool
Removing duplicates in Google Sheetsย is such a common thing people do that there is now a dedicated option to remove the duplicates in Google Sheets quickly. Google also covers it in their help section.
Suppose you have the dataset shown below and want to remove all the duplicated data from this dataset.
Below are the steps to eliminate duplicates in Google Sheets:
- Select the dataset from which you want to remove the duplicate records.
- Go to the โDataโย option in the menu, then click โData cleanup.โ
- Click on the โRemove Duplicatesโ option.
- In the โRemove duplicatesโ dialog box, make sure ‘Data has header row‘ is selected (only if your data has the header row).
- Ensure ‘Select all‘ is selected (in the ‘Columns to analyze‘ section).
- Click on the ‘Remove duplicates‘ button.
- You will get the following prompt, and you can click โOK.โ
ย If you only check one column in the remove duplicates menu, it will remove the duplicates that appear in that column and the entire row that the duplicate appears in, unlike when you select all.
ย In this case, 6 rows have been removed when before only 5 had been removed.
ย What If You Want to Have Google Sheets Remove Duplicate Rows Based on One Column?
To remove from one column, select the specific column only and complete the same process. This way, other columns wonโt be affected when you remove the duplicates.
But, when you use the Google Sheets ‘Remove duplicates‘ option to eliminate the duplicate records, it won’t impact the data around it.
Using it doesn’t remove the rows or delete any cells. It simply deletes the duplicate records from the cells (without disturbing cells around the dataset). You can then easily remove the rows containing empty cells by holding CTRL, selecting the row headers, then deleting the rows.
ย How To Remove Duplicates in Google Sheets Using the UNIQUE function
Google Sheets also has a function that you can use to delete duplicates Google Sheets by removing duplicate valuesย and keeping the unique valuesย only. It’s the UNIQUE function.
Suppose you have the dataset shown below and want to remove all the duplicate records from this dataset.
ย The below formula would remove all the duplicate rows, and you will get all the unique ones:
=UNIQUE(A2:B17)
The above formula will give you the result starting from the cell in which you entered the formula.
The result is an array of unique records, and you can not delete or edit part of this array result. Nothing will happen in case you try to delete any one cell from the result. And in case you overwrite any cell, the entire result will go away, and you will see a #REF! error.
One of the limitations of using the UNIQUE function is that it would consider only those records as duplicates where the entire row content repeat. In case you only want to keep one instance of a country name and delete all the others, UNIQUE will only do it if the rest of the column values for that record are also the same.
If your data has leading, trailing, or extra spaces, the UNIQUE function will consider the records differently. In such a case, you can use the below formula:
=ArrayFormula(UNIQUE(TRIM(A2:B17)))
How To Remove Duplicates in Google Sheets Using the QUERY Function to Remove Duplicates
Although the QUERY function in Google Sheets is not specifically designed to remove duplicates from a dataset, it can still work. The QUERY function is more commonly used for filtering and manipulating data based on specific criteria, but you can also remove duplicates in Google Sheets.
In our example, hereโs how to dedupe in Google Sheets using the QUERY function:
- Type the equals signย (=) and the QUERY function in a blank cell.
- Select the data range.
- Enter the statement “Select A,B,MIN(C) Group By A,B label MIN(C) โ2022 GDPโ” in quotation marks.
- Close the brackets and click โEnter.โ
The full formula weโve used for this example is:
=QUERY(A2:C17,"Select A,B,MIN(C) Group By A,B label MIN(C) '2022 GDP' ")
The function returns the unique values in the selected range without duplicate values. What this function does is group the data in the range, thereby removing the duplicates. This formula needs another arithmetic function, and in our example, weโve used MIN. However, you can also use SUM or MAX.
Although it is possible to deduplicate Google Sheets using the QUERY function, the formula is complex and difficult to understand.
How to Find and Delete Duplicates in Google Sheets
Sometimes you might want to remove duplicates in a spreadsheet in a more discriminate way rather than just removing all the duplicates. In this case, you would first have to find the duplicates in your data.
You can highlight duplicates in the data range by using conditional formatting rules. Hereโs how to do it:
- Select the range of data.
- Go to โFormat,โ then โConditional formatting.โ
- In the conditional formatting window, go to the โFormat rulesโย drop-down menu and select โCustom formula is.โ
- To highlight the duplicates, input the following formula:
=(COUNTIF($A$1:$A,$A1)>1)*(COUNTIF($B$1:$B,$B1)>1)
Youโll see that the duplicates in your data are highlighted. You can change the highlight color on the conditional format menu.
You can then manually delete duplicate rows in Google Sheets by using backspace or using the delete row option.
How To Find Duplicates in Google Sheets Using Pivot Tables
Pivot tables in Google Sheets automatically remove duplicates. They are used to summarize data by aggregating and condensing it.
Hereโs how to filter out duplicates in Google Sheets using Pivot tables:
- Select the data.
- Go to โInsertโ > โPivot tables.โ
- Choose โNew sheetโ or โExisting sheet,โ then click โCreate.โ
- In the Pivot table editor, Go to โRowsโ and click โAdd.โ
- Choose the rows you want to view without duplicates.
- Next, go to โValueโ and click โAdd.โ
- Choose the same columns or rows as before.
Once youโve added the values, youโll notice a column labeled COUNTA of Count. This column shows how often the value has been repeated in the data. This will help you identify duplicates.
Youโll see that your data is sorted alphabetically, and there is no duplicate data.
How To Remove Duplicate Using an Add-on
Google Sheets, as a rule, supports a massive library of various add-ons to take care of every conceivable issue or problem.
The duplicate remover add-ons can all be used for the same purpose. The Google Sheets Remove Duplicates add-on by Ablebits is one of the best add-ons to remove duplicate entries from your dataset.
To use an add-in, you first need to add it to your Google Sheets document.
Below are the steps to add an add-on to your Google Sheets document:
- Open the Google Sheets document in which you want to remove the duplicates.
- Click the โAdd-onsโ tab.
- Click on “Get add-ons.”
- In the “Add-ons” dialog box that opens, search for โRemove duplicateโ in the field in the top-right.
- In the list of add-ons that are shown, click on the โRemove Duplicateโ add-on.
- In the “Remove Duplicates” add-on screen, click on the blue โInstallโ button.
- In the dialog box that appears, it may ask you to confirm your account by logging in to your Gmail. Enter the relevant details and click on the blue โAllowโ button.
The above steps will add the โRemove Duplicateโ add-on to your Google Sheets document, and now you can start using it.
Below are the steps to use this add-on to delete duplicate records in Google Sheets:
- Select the dataset in which you have the duplicates that you want to remove.
- Click the โAdd-onsโ option in the menu
- Hover the cursor over the ‘Remove Duplicates‘ option.
- Click on โFind duplicate or unique rows.โย This will open the โFind duplicate or unique rowsโ dialog box (it may take a few seconds).
- In Step 1, make sure the correct range is selected. You can also check the box to create a backup copy of the Google Sheets document.
- In Step 2, make sure โDuplicatesโ is selected.
- In Step 3, specify whether your data has a header or not and whether you want to skip empty cellsย or not.
- In Step 4, select the ‘Delete rows within selection‘ option. This will remove the duplicate rows.
- Click on โFinish.โ
The above steps would instantly remove the duplicate in Google Sheets, and you will be left with the unique records only.
Since Google Sheets can quickly remove duplicates using an inbuilt feature, it’s best to use it if possible. The only reason I would recommend using the add-on is when you want to do a lot more than just removing duplicates.
This add-on can also perform the following:
- Color the duplicate records
- Add a column and specify the records that are duplicates
- Compare columnsย or sheets
Which Method to Remove Duplicates in Google Sheets is Most Effective?
The most suitable method depends on the specific requirements and complexity of your data. However, the most effective method to delete duplicate entries in Google Sheets is using the In Google built-in “Remove duplicates” feature.
This method is simple and effective for removing duplicates from a single column or multiple columns at once.
Conclusion
Mastering the art of removing duplicates in Google Sheets is a game-changer for anyone handling large datasets. With simple yet versatile options like the “Remove Duplicates” feature, the UNIQUE function, or even add-ons for more advanced needs, you have everything at your disposal to streamline your workflow. Whether you’re cleaning up a single column or de-duplicating entire rows, these methods empower you to work smarter and keep your data organized.
Now that you’ve explored these techniques, you’re ready to tackle any data-cleaning challenge with ease, ensuring your spreadsheets are as efficient and accurate as possible.
If you found this guide on how to remove duplicates in Google Sheets helpful, you may also like the following tutorials:
4 thoughts on “How To Remove Duplicates In Google Sheets (3 Easy Ways)”
Thank you so much for sharing the video.
I was using different time consuming tools to remove the duplicates and suddenly got this video. Really helpful!
Well that was easy. Thanks for this. Saves me a LOT of time.
Saved me a tonne of time, thank you Sumit. So glad I found this video!
Thank you for sharing such a lovely article which shows step by step guide Really loved it