Google Sheets Show Duplicates? Find & Remove Them

How-to basics · Updated November 23, 2026

Yes, Google Sheets can show duplicates, and the fastest way to see them is with conditional formatting: select your data range, go to Format > Conditional formatting, choose Custom formula is, enter =COUNTIF(A:A, A1)>1 (adjusting the range to your data), and pick a highlight color. This instantly colors every repeated value so you can spot them at a glance. For more control, you can also use the built-in Remove duplicates tool or write formulas to list, count, or flag duplicates.

Why You Need to Find Duplicates

Duplicate data is a common problem in spreadsheets. It can come from merging lists, multiple people entering information, importing data from different sources, or simple copy-paste errors. Duplicates can skew totals, mess up charts, cause mailing lists to send multiple emails, and make it hard to trust your data. Knowing how to show and remove them is a core spreadsheet skill.

For example, if you have a list of customer emails and you want to send a promotional message, duplicates mean some customers get the email twice, which looks unprofessional and can hurt your sender reputation. In a budget, duplicate line items can double-count expenses. Finding duplicates is the first step to cleaning your data.

Method 1: Highlight Duplicates with Conditional Formatting (Visual)

This is the best way to show duplicates because it marks them right in your data without changing anything.

  1. Select the range you want to check (e.g., A2:A100).
  2. Click Format > Conditional formatting.
  3. Under “Apply to range,” confirm your range.
  4. Under “Format rules,” change the dropdown to Custom formula is.
  5. Enter a formula like =COUNTIF($A$2:$A$100, A2)>1 (adjust the range to match your data).
  6. Set a formatting style (e.g., a yellow fill).
  7. Click Done.

The formula counts how many times each cell’s value appears in the entire range. If the count is greater than 1, the cell gets highlighted. This works for text, numbers, and dates. Note: the first occurrence is also highlighted because it’s part of a duplicate pair. If you only want to highlight the second and later occurrences, use =COUNTIF($A$2:$A2, A2)>1 – this counts only up to the current row, so the first occurrence won’t be highlighted.

Method 2: Use the Built-in Remove Duplicates Tool

If you just want to delete duplicates outright, Google Sheets has a one-click tool. It’s not for showing them, but it’s the quickest way to clean up.

  1. Select the data range (including headers if you have them).
  2. Click Data > Data cleanup > Remove duplicates.
  3. Check the box if your selection has a header row.
  4. Choose which columns to check (by default, all selected columns are checked).
  5. Click Remove duplicates.

Google Sheets will tell you how many rows were removed and how many remain. This tool removes entire rows, so make sure you don’t have data in adjacent columns that you need to keep – it will delete the whole row, not just the duplicate cell.

Method 3: Use Formulas to List or Count Duplicates

Sometimes you need a separate list of duplicates, not just highlights. Formulas give you that flexibility.

  • Count duplicates per item: In a helper column, use =COUNTIF(A:A, A2) to see how many times each value appears.
  • List unique duplicate values: Use the UNIQUE function combined with FILTER (available in Google Sheets). For example, with data in A2:A100, enter =UNIQUE(FILTER(A2:A100, COUNTIF(A2:A100, A2:A100)>1)) in a blank cell. This returns a list of values that appear more than once.
  • Flag duplicates with IF: In a helper column, use =IF(COUNTIF(A:A, A2)>1, “Duplicate”, “Unique”) to label each row.

These formulas are dynamic – if you change your data, they update automatically. Note: UNIQUE and FILTER are standard Google Sheets functions and work in Excel too, but Excel’s UNIQUE requires Excel 365 or 2021.

How to Choose the Right Method

Your choice depends on what you need to do:

  • Just want to see them? Use conditional formatting – it’s visual and non-destructive.
  • Want to delete them permanently? Use the Remove duplicates tool – it’s fast and safe if you have a backup.
  • Need a list of duplicates for further analysis? Use the UNIQUE + FILTER formula.
  • Need to keep one occurrence but mark the rest? Use conditional formatting with the “second occurrence” formula, or add a helper column with COUNTIF.

For most users, conditional formatting is the best starting point because it shows you exactly where the duplicates are before you decide to delete anything.

Common Problems and Pitfalls

Here are issues people often run into:

  • Leading/trailing spaces: “John” and “John ” look different to Google Sheets. Use =TRIM(A2) to clean data first, or use =ARRAYFORMULA(TRIM(A2:A100)) in a helper column.
  • Case sensitivity: By default, COUNTIF is not case-sensitive, so “apple” and “APPLE” are considered duplicates. If you need case-sensitive matching, use =SUMPRODUCT(--EXACT(A2, $A$2:$A$100))>1.
  • Numbers vs. text: A number stored as text (e.g., “00123”) won’t match a number (123). Convert text to numbers using =VALUE(A2) or use the “Convert to number” option that appears when you select the cells.
  • Whole row vs. single column: The Remove duplicates tool checks entire rows. If you only want to find duplicates in one column but keep the row data, use conditional formatting on that column only.

Google Sheets vs. Excel: Key Differences

Both Google Sheets and Excel can find duplicates, but the steps differ slightly:

  • Conditional formatting: In Excel, you go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values – a one-click option that doesn’t require a formula. In Google Sheets, you must use a custom formula.
  • Remove duplicates: Excel has Data > Remove Duplicates on the ribbon, which works like Google Sheets’ tool. Google Sheets also has it under Data > Data cleanup.
  • Functions: Both support COUNTIF and UNIQUE. Excel’s UNIQUE is only in Excel 365/2021, while Google Sheets has it for free.

If you’re using Excel, the built-in “Duplicate Values” conditional formatting is faster than writing a formula. But for Google Sheets, the custom formula method is the standard.

Frequently Asked Questions

How do I highlight duplicates in Google Sheets without deleting them?

Use conditional formatting with a custom formula like =COUNTIF(A:A, A1)>1. This highlights all cells that appear more than once. To highlight only the second and later occurrences, use =COUNTIF($A$2:$A2, A2)>1.

Can I remove duplicates but keep the first occurrence?

Yes. The built-in Remove duplicates tool keeps the first occurrence and deletes subsequent ones. If you want to keep a specific occurrence (like the one with the most data), you may need to sort your data first or use a more advanced script.

Why is my conditional formatting not catching duplicates?

Check for extra spaces, different data types (text vs. number), or that your formula range matches your data range. Also, make sure you’re using absolute references (with $) correctly. If you’re checking a range like A2:A100, the formula should be =COUNTIF($A$2:$A$100, A2)>1.

How do I find duplicates across multiple columns in Google Sheets?

To find rows where the combination of values in two or more columns is duplicated, you can use a helper column that concatenates the values. For example, with names in A and emails in B, put =A2&"-"&B2 in C2, then use conditional formatting on column C with =COUNTIF($C$2:$C$100, C2)>1. Alternatively, use the Remove duplicates tool and select all columns you want to check.

Does Google Sheets have a built-in “Show duplicates” button?

No, there is no single button that just shows duplicates. The closest is conditional formatting, which requires a formula. The Remove duplicates tool deletes them, but it doesn’t show them first. So the answer is: use conditional formatting to show, and the remove tool to delete.

Final Tips for Managing Duplicates

Always make a copy of your spreadsheet before removing duplicates – you can’t undo the Remove duplicates tool with Ctrl+Z. To make a copy, click File > Make a copy. Also, consider using data validation to prevent duplicates from being entered in the first place. For example, you can use a custom formula in data validation to reject duplicate entries in a column. With these methods, you can keep your data clean and accurate.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.