Show Duplicates in Google Sheets: A Step-by-Step Guide

Learn practical methods to reveal and manage duplicates in Google Sheets using formulas, formatting, and real-world workflows. How To Sheets explains with examples for students, professionals, and small businesses.

How To Sheets
How To Sheets Team
·5 min read
Duplicates in Sheets - How To Sheets
Photo by 8618939via Pixabay
Quick AnswerSteps

Goal: google sheets show duplicates with confidence. In this guide you’ll learn practical, copy‑paste friendly methods to reveal duplicates, including built‑in functions, conditional formatting, and simple extraction workflows. You’ll also see common mistakes to avoid and quick tips to keep data clean. By following these steps, you can reliably identify repeated values in any sheet and act on them efficiently.

Why duplicates happen and why they matter in Google Sheets

Duplicate data can creep into sheets through imports, copy-paste edits, or inconsistent formatting. When you’re managing student rosters, sales records, or project timelines, duplicates can distort counts, inflate totals, and mislead analyses. According to How To Sheets, recognizing duplicates early saves time and prevents bad decisions. In practice, a duplicate means two or more rows contain the same value in the scope you’re analyzing, whether it’s a single column or a combination of fields.

Common sources include:

  • Exact same entry pasted twice.
  • Entries with trailing spaces or different capitalization.
  • Data merged from multiple sources with inconsistent keys.
  • Numbers stored as text due to formatting variations.

Key signs you might be dealing with duplicates include repeated values in a column, multiple rows that share the same primary key, and unexpected spikes in totals. The goal isn’t just to delete duplicates; it’s to understand why they occurred and to implement a workflow that preserves the integrity of your dataset. By designing a robust approach, you’ll minimize accidental data loss and improve data quality in real projects.

Core techniques to reveal duplicates in Google Sheets

There are several practical ways to spot duplicates in Google Sheets, depending on whether you’re working with a single column or multiple fields. The most common tool is the COUNTIF function. For a value in A2, you can use =COUNTIF(A:A, A2)>1 to flag whether that value appears more than once. Dragging this formula down marks all duplicates.

If you’re dealing with two or more columns, you can create a helper column that combines the key fields using TEXTJOIN, then run COUNTIF on that key. For example, in C2 enter =TEXTJOIN("|", TRUE, A2, B2) and in D2 use =COUNTIF(C:C, C2)>1 to flag duplicates across both columns.

For a more dynamic view, you can use FILTER together with UNIQUE to extract the set of duplicates: =UNIQUE(FILTER(A:A, COUNTIF(A:A, A:A)>1)). You can also use the QUERY language to group by and identify duplicated keys: =QUERY(A:B, "select A, B, count(A) where A is not null group by A, B having count(A) > 1", 1). These approaches let you tailor the solution to your data structure.

Visualizing duplicates with conditional formatting

Conditional formatting provides an immediate, visual cue for duplicates without altering data. In a single column (A), select the range and add a custom formula rule with =COUNTIF($A:$A, $A1)>1 and choose a bold color for the fill. This highlights all cells that appear more than once.

To detect duplicates across multiple columns, consider a helper approach: use a unique key per row (as above with TEXTJOIN) and apply conditional formatting to the helper column based on =COUNTIF($C:$C, $C1)>1. You can also combine conditional formatting with data validation to prevent future duplicates by warning users during data entry.

Extracting duplicates to a separate list for review

Sometimes you want a clean list of duplicates in a dedicated sheet rather than highlighed cells. In a new sheet, you can pull duplicates with: =FILTER(UNIQUE(A:A), COUNTIF(A:A, A:A)>1). This yields each duplicated value once, making it easy to review and decide which entries to keep or discard.

If your duplicates span multiple columns, build a combined key for deduplication (as described) and apply the same FILTER/UNIQUE pattern to that key. You’ll gain a compact, readable list that you can export or share with teammates for validation. Always verify that the duplicates list reflects your intended scope (single column vs multi-column keys).

Handling duplicates across multiple columns and case sensitivity

A common pitfall is treating values that differ only by case or surrounding spaces as unique. Normalize data first by applying TRIM and LOWER (or UPPER) to the key columns. For example, in a helper column use =LOWER(TRIM(A2)) and copy down, then deduplicate on that normalized key.

For multi-column duplicates, you can create a canonical key like =TEXTJOIN("|", TRUE, LOWER(TRIM(A2)), LOWER(TRIM(B2))). Then, use COUNTIF on that key to flag duplicates. If you must preserve the original columns, keep a backup and apply changes to a copy. This reduces false positives and ensures cleaner results.

Authority sources

  • How To Sheets Analysis, 2026: Practical guidance on data cleaning and deduplication in spreadsheets.
  • https://www.nature.com
  • https://www.stanford.edu
  • https://www.sciencedirect.com

Tools & Materials

  • Google account with access to Google Sheets(Needed to access Google Sheets online.)
  • Sample dataset in Google Sheets(For demonstration; use a dataset with obvious duplicates.)
  • Spreadsheet with headers(Keep headers in row 1 to separate data from metadata.)
  • Internet connection(Stable connection for Sheets and online resources.)
  • Optional: backup copy(Always good practice before bulk edits.)

Steps

Estimated time: 15-25 minutes

  1. 1

    Open and prepare dataset

    Open the dataset in Google Sheets and verify the range you’ll analyze. Confirm whether the first row contains headers and decide if headers should be included in the duplicate check. Note the column(s) involved to set up formulas correctly.

    Tip: Ensure the header row is excluded from calculations by anchoring ranges or starting formulas at row 2.
  2. 2

    Add a helper column with COUNTIF

    In a new column (e.g., column C), enter a COUNTIF formula to flag duplicates in the target key. For a single column A, in C2 enter =COUNTIF($A:$A, A2)>1 and copy down. This boolean flag makes it easy to review duplicates at a glance.

    Tip: Drag-fill or double-click the fill handle to apply quickly.
  3. 3

    Apply conditional formatting to highlight duplicates

    Select the target range and apply a conditional formatting rule with a custom formula. Use =COUNTIF($A:$A, $A2)>1 (for single column) and pick a vivid color. This provides immediate visual cues while preserving the original data.

    Tip: Use 'Stop if true' to ensure no layering issues if you have multiple rules.
  4. 4

    Extract duplicates to a separate sheet

    Create a new sheet and use a FILTER/UNIQUE combination to pull duplicates. For example, =UNIQUE(FILTER(A:A, COUNTIF(A:A, A:A)>1)). If working with multiple columns, build a combined key using TEXTJOIN and apply the same approach.

    Tip: Always test with a small sample first to confirm results before running on large data.
  5. 5

    Normalize data to prevent false positives

    Before deduplication, standardize text by using TRIM and LOWER to strip spaces and unify case. For multi-column keys, apply this normalization in the key you generate (e.g., =TEXTJOIN("|", TRUE, LOWER(TRIM(A2)), LOWER(TRIM(B2))).

    Tip: Normalize both the source data and any extracted duplicates to keep results consistent.
  6. 6

    Review and maintain a clean workflow

    Review the duplicates list and decide which records to keep. Store a backup copy before making bulk changes. Document your approach so teammates can reproduce it later.

    Tip: Consider turning deduplication steps into a small template you can reuse.
Pro Tip: Always strip leading/trailing spaces using TRIM before deduplicating.
Pro Tip: For multi-column duplicates, create a combined key (e.g., TEXTJOIN) before counting.
Note: Be mindful of case sensitivity; use LOWER/UPPER to standardize.
Warning: Avoid deduplicating data in place without a backup to prevent data loss.
Pro Tip: Test formulas on a small sample to verify results before scaling.

FAQ

How do I quickly find duplicates in a single column?

Use COUNTIF to flag duplicates, and apply conditional formatting for a visual cue. For column A, place =COUNTIF($A:$A, A2)>1 in a helper column or directly format the range.

Use COUNTIF to flag duplicates in the column and use conditional formatting to highlight them.

How can I highlight duplicates across multiple columns?

Create a combined key from the relevant columns (e.g., TEXTJOIN) and apply a COUNTIF on that key. You can also use a conditional rule on the merged key to highlight duplicates.

Combine the columns into a single key and highlight duplicates with a conditional rule.

How do I extract duplicates to a new sheet?

Use a formula like =FILTER(UNIQUE(A:A), COUNTIF(A:A, A:A)>1) to output duplicates once each on a new sheet. For multi-column duplicates, use a canonical key with TEXTJOIN.

Use FILTER and UNIQUE to pull duplicates into a separate sheet.

Do numbers and text duplicates behave differently?

Yes. Treat numbers as numbers and text as text. Normalize with functions like VALUE, TEXT, LOWER, and TRIM when comparing values.

Numbers and text can behave differently; normalize them before deduplication.

Can I remove duplicates automatically without losing data?

You can remove duplicates with built‑in tools after filtering or extracting duplicates, but always keep a backup first. Consider deduplicating on a copy of the dataset.

Yes, but back up first and consider deduplicating on a copy.

What about duplicates across multiple sheets?

Consolidate data into a single key in a master sheet to compare duplicates, or use apps scripts to cross-check values across sheets. This keeps comparisons consistent.

Cross-sheet deduplication requires a master key or a script-based approach.

Watch Video

The Essentials

  • Flag duplicates with COUNTIF for quick review
  • Use conditional formatting for visual cues
  • Extract duplicates to a separate sheet for validation
  • Normalize data to minimize false positives
  • Always maintain a backup before deduplication
Infographic showing steps to find duplicates in Google Sheets
Process to identify and manage duplicates in Google Sheets

Related Articles