The fastest way to spot duplicates in Google Sheets

Google Sheets has a built-in conditional formatting tool that highlights duplicate values automatically. Open your spreadsheet, select the column or range where you want to find duplicates, then go to Format > Conditional formatting. Under "Format rules," choose "Custom formula is" and enter =COUNTIF($A$1:$A,$A1)>1 (replacing A with your column letter). Set a fill color and click Done. Every duplicate value in that range will highlight in the color you chose.

This method works for single columns, multiple columns, or an entire dataset. The formula counts how many times each value appears in the range — if it appears more than once, it highlights. You can use it to find exact duplicates or to spot near-duplicates by adjusting the formula slightly.

Key Takeaways

  • Conditional formatting with a COUNTIF formula highlights all duplicate values in seconds without changing your data.
  • You can highlight duplicates in a single column, multiple columns, or your entire dataset by adjusting the range in the formula.
  • The UNIQUE function removes duplicates and creates a clean list in a new location without affecting your original data.
  • For finding duplicates across two different columns or sheets, use COUNTIF to check whether values from one list appear in another.
  • Google Sheets does not have a one-click "remove duplicates" button, but you can delete highlighted rows manually or use formulas to filter them out.

Using conditional formatting to highlight duplicates

Conditional formatting is the clearest way to see duplicates at a glance. Select the range you want to check — click the column header to select an entire column, or drag to select specific cells. Then open the Format menu and click Conditional formatting.

In the conditional formatting panel on the right, make sure "Format rules" is selected. Under the dropdown that says "Format rules," choose "Custom formula is." In the formula box, type =COUNTIF($A$1:$A,$A1)>1, but replace the A letters with the actual column letter of your data. If your data is in column B, use =COUNTIF($B$1:$B,$B1)>1. The dollar signs lock the range so the formula works correctly as it moves down each row.

Click the fill color icon and choose the color you want duplicates to show in — red or yellow are common choices. Click Done. Every cell in that range containing a value that appears more than once will highlight in your chosen color. The original data stays unchanged; only the formatting changes.

Removing duplicates with the UNIQUE function

If you want to create a new list with duplicates removed, use the UNIQUE function. Click an empty cell where you want the cleaned list to start, then type =UNIQUE(A1:A100), replacing A1:A100 with your actual data range. Press Enter. Google Sheets will create a list below that formula containing each unique value only once, in the order they first appeared.

The UNIQUE function does not change your original data — it creates a new list in a separate location. This is useful when you want to see what distinct values exist in your dataset or when you need a clean version for another task. If your data spans multiple columns, you can use =UNIQUE(A1:C100) to remove rows where all columns match.

Finding duplicates across two columns or lists

Sometimes you need to check whether values from one column appear in another column, or whether one list contains duplicates of items from a different list. Use COUNTIF to do this. In a new column next to your data, type =COUNTIF($B$1:$B$100,A1) to check whether each value in column A appears anywhere in column B. The result will be a number — 0 means it does not appear, 1 or higher means it does.

You can also use this to find values that appear in one list but not another. If the COUNTIF result is 0, that value exists only in column A. If the result is greater than 0, it exists in both columns. Copy the formula down the entire column to check all your values at once. Then you can sort or filter by the results to see which items match and which do not.

Checking for duplicates in multiple columns at once

If your spreadsheet has many columns and you want to find rows where all columns are identical, select your entire data range including headers. Go to Format > Conditional formatting and use the formula =COUNTIFS($A$1:$A,$A1,$B$1:$B,$B1,$C$1:$C,$C1)>1, adding more columns as needed. This checks whether the combination of values in columns A, B, and C appears more than once.

COUNTIFS works like COUNTIF but checks multiple conditions at once. If you have 10 columns of data, you would add all 10 to the formula. This highlights entire rows only when every column in that row matches another row exactly. It is slower than checking a single column but catches duplicates that would be missed if you only looked at one field.

Deleting duplicate rows after you find them

After you highlight duplicates with conditional formatting, you can delete the duplicate rows manually. Click the row number on the left to select an entire row, then right-click and choose Delete row. Repeat for each duplicate. This works well for small datasets with just a few duplicates.

For larger datasets, use a filter to hide non-duplicates first. Click Data > Create a filter, then click the filter icon in the column you highlighted. Uncheck "None" to show only the highlighted (duplicate) rows. Select all visible rows, right-click, and delete them. Then remove the filter to see your cleaned data. Be careful — deleting is permanent, so consider copying your data to a new sheet first if you are unsure.

Using formulas to identify which rows are duplicates

Instead of just highlighting, you can create a helper column that tells you exactly which rows are duplicates. In a new column, type =IF(COUNTIF($A$1:$A1,$A1)>1,"Duplicate","Unique"). This formula checks whether the current row's value has appeared before in the range above it. The first occurrence shows "Unique" and all later occurrences show "Duplicate."

This approach is useful when you want to keep the first instance of a value and remove only the repeats. You can then filter by this column to see only the rows marked "Duplicate" and delete those. It also creates a record of what was removed, which is helpful if you need to explain the change to someone else later.

Frequently Asked Questions

Can I find duplicates in Google Sheets without highlighting them?

Yes. Use the UNIQUE function to create a separate list of unique values, then compare it to your original list. Or use a helper column with COUNTIF to mark which rows are duplicates without changing the formatting of your original data.

What if I want to keep one copy of each duplicate and delete the rest?

Use conditional formatting to highlight duplicates, then manually delete the extra rows. Or use a helper column with the formula shown above to mark duplicates, filter to show only those marked "Duplicate," and delete them. The first occurrence of each value will remain.

Does Google Sheets have a button to remove all duplicates at once?

No built-in button exists, but you can achieve the same result with UNIQUE or by filtering and deleting manually. UNIQUE is fastest for large datasets because it creates a clean list instantly without requiring you to delete rows one by one.

Can I find duplicates across multiple sheets?

Not directly with conditional formatting. Use COUNTIF with a reference to another sheet: =COUNTIF(Sheet2!$A$1:$A$100,A1). This checks whether each value in your current sheet appears in Sheet2. You can then highlight or mark the results.

What if my duplicates have extra spaces or different capitalization?

The standard COUNTIF formula treats "John" and "john" as different values. Use =COUNTIF($A$1:$A,TRIM(UPPER($A1)))>1 to ignore capitalization and extra spaces. TRIM removes leading and trailing spaces, and UPPER converts everything to capitals before comparing.