How to Show Only the Duplicates in Google Sheets: Filter Duplicate Rows, List Repeated Values and Find Rows That Appear Once (2026)
Before you delete duplicates, it helps to see them. Which email addresses repeat, how many copies are there, and do the copies hold different information? Google Sheets doesn’t have a “show duplicates” button, and Data › Data cleanup › Remove duplicates deletes rows without showing you what it removed. This guide shows the duplicate rows on their own, either as a live list made with one formula or by filtering the original table, and then covers the variations people actually need: one entry per repeated value, only the extra copies, the rows that appear just once, two-column keys, and the COUNTIF traps that make the wrong rows show up.
The short answer
With the data in A2:D and the column that defines a duplicate in A, put this in an empty cell to the right of the table or on a new tab:
=FILTER(A2:D, A2:A<>"", COUNTIF(A2:A, A2:A)>1)
- COUNTIF(A2:A, A2:A) counts, for every row, how many times that row’s value appears in column A. Inside FILTER it works on the whole column at once.
- >1 keeps the rows whose value appears more than once, so you get every copy, including the first one.
- A2:A<>"" keeps blank rows out of the result.
- The result is live. When someone adds a row or fixes a typo, the list updates, and the original table is never touched.
The example
A sign-up list with eight rows. The last column shows what COUNTIF returns for each row; the ticked rows are the ones the formula shows.
| Row | A: Email | B: Name | C: Plan | COUNTIF of the email |
|---|---|---|---|---|
| 2 | ana@example.com | Ana | Basic | 2 ✔ |
| 3 | ben@example.com | Ben | Pro | 3 ✔ |
| 4 | cara@example.com | Cara | Basic | 1 |
| 5 | ANA@example.com | Ana B. | Pro | 2 ✔ |
| 6 | ben@example.com | Benjamin | Pro | 3 ✔ |
| 7 | dev@example.com | Dev | Basic | 1 |
| 8 | ben@example.com | Ben | Basic | 3 ✔ |
| 9 | eve@example.com | Eve | Pro | 1 |
The formula returns five rows: Ana, Ben, Ana B., Benjamin and Ben (rows 2, 3, 5, 6 and 8), in their original order. Note row 5: ANA@example.com is counted together with ana@example.com because, as Google’s COUNTIF help says, “COUNTIF is not case sensitive.” That’s usually what you want for emails and names. If it isn’t, see “Match letter case exactly” below.
Put the copies next to each other
FILTER keeps the original order, so the three Ben rows end up scattered. Sort the result by the key column so each group sits together:
=SORT(FILTER(A2:D, A2:A<>"", COUNTIF(A2:A, A2:A)>1), 1, TRUE)
Sorting text ignores letter case, so ana@ and ANA@ land next to each other: Ana, Ana B., Ben, Benjamin, Ben. To see how many copies each value has, add the count as an extra column with HSTACK:
=FILTER(HSTACK(A2:D, COUNTIF(A2:A, A2:A)), A2:A<>"", COUNTIF(A2:A, A2:A)>1)
That adds a fifth column reading 2, 3, 2, 3, 3. For a summary table of values and counts instead of the rows themselves, see counting duplicates.
Filter the original table instead (no formula column)
If you want to edit the duplicate rows where they are, filter the table itself. Google’s sort and filter help uses the same idea in its own custom-formula example (=COUNTIF(data_range, data_range)=1 for unique values).
- Select the table, headers included.
- Choose Data › Create filter view. A filter view only changes what you see; a normal filter (Data › Create a filter) changes the view for everyone with access.
- Click the filter icon in the Email header and choose Filter by condition › Custom formula is.
- Enter the formula below and click OK:
=COUNTIF(A2:A, A2:A)>1
Rows whose email appears only once are hidden, and the bottom right of the sheet shows how many rows are displayed. Sort the filtered view A to Z on the Email column to group the copies. Because the rows are the real ones, any edit you make here changes the data, which is handy for fixing typos and less handy if you meant to just look. Close the filter view with the × at the top right when you’re done.
Already highlighted them? If you shaded duplicates with conditional formatting (see highlighting duplicates), you can skip the formula: open the filter menu and use Filter by color › Fill color. Google’s help says filtering by conditional formatting colors works.
A list of the repeated values, one entry each
Sometimes you only need to know which values repeat, not every row:
=UNIQUE(FILTER(A2:A, A2:A<>"", COUNTIF(A2:A, A2:A)>1))
On the example this returns ana@example.com, ben@example.com and ANA@example.com. That’s three entries, not two, because UNIQUE (unlike COUNTIF) is case-sensitive, per Google’s UNIQUE help. Lowercase the values first to get one entry per group:
=ARRAYFORMULA(UNIQUE(FILTER(LOWER(A2:A), A2:A<>"", COUNTIF(A2:A, A2:A)>1)))
That gives ana@example.com and ben@example.com.
Only the extra copies (what Remove duplicates would delete)
Showing every copy is good for review, but sometimes you want exactly the rows that would go if you de-duplicated: the second and later copies. Use a running count, which is 1 on the first copy of each value and 2 or more on every later one:
=FILTER(A2:D, A2:A<>"", COUNTIFS(A2:A, A2:A, ROW(A2:A), "<="&ROW(A2:A))>1)
ROW(A2:A), "<="&ROW(A2:A) limits each row’s count to the rows above it and the row itself. On the example it returns rows 5, 6 and 8 (Ana B., Benjamin and the second Ben). Those are the three rows Data cleanup › Remove duplicates would delete if you ticked only the Email column, because that tool keeps the first copy and also treats values that differ only in letter case as duplicates (Google’s Remove duplicates help). Eight rows minus three leaves five, one per email.
If you prefer a helper column you can see and sort, enter this in E2 and fill it down; every row showing 2 or more is an extra copy:
=COUNTIF($A$2:A2, A2)
And to see just the first copy of each value that has duplicates (here Ana and Ben, rows 2 and 3), combine both counts:
=FILTER(A2:D, A2:A<>"", COUNTIF(A2:A, A2:A)>1, COUNTIFS(A2:A, A2:A, ROW(A2:A), "<="&ROW(A2:A))=1)
To keep the newest copy rather than the first, sort by date first or use the SORTN method in keep the latest row.
Only the rows that appear once
The opposite question, “which rows have no duplicate at all?”, comes up when you want to drop every copy of a repeated value, original included. Change >1 to =1:
=FILTER(A2:D, A2:A<>"", COUNTIF(A2:A, A2:A)=1)
On the example that’s Cara, Dev and Eve. You may see UNIQUE’s exactly_once option suggested for this:
=UNIQUE(FILTER(A2:A, A2:A<>""), FALSE, TRUE)
It only returns the values, not the whole rows, and it’s case-sensitive: here it returns five emails, because ana@ and ANA@ each look like they appear once. Use the COUNTIF version when case shouldn’t matter.
Duplicates defined by two or more columns
If a row is only a duplicate when several columns match, for example the same email and the same plan, switch to COUNTIFS and add a range/criterion pair per column:
=FILTER(A2:D, A2:A<>"", COUNTIFS(A2:A, A2:A, C2:C, C2:C)>1)
On the example, only rows 3 and 6 (Ben and Benjamin, both ben@ on Pro) come back. Row 8 is Ben on Basic, so it’s no longer a duplicate. The same pairs work in the running-count formula and in the filter view’s custom formula.
Rows that also appear on another tab
To show the rows of this list whose email is also on another tab (here one named Old list), count in the other range instead:
=FILTER(A2:D, A2:A<>"", COUNTIF('Old list'!A2:A, A2:A)>0)
With an old list of ben@, EVE@ and zed@, that returns the three Ben rows and Eve. The compare two columns or sheets guide covers other spreadsheets and IMPORTRANGE.
COUNTIF traps that make the wrong rows show up
Wildcards in your data
COUNTIF reads * and ? in the criterion as wildcards (and ~ as an escape). Because every value is used as a criterion here, a product code like a*b also matches ab and axxb, and a?c matches abc. If your key column can contain those characters, count with a plain comparison instead. The = comparison has no wildcards and, like COUNTIF, ignores letter case:
=FILTER(A2:D1000, A2:A1000<>"", MAP(A2:A1000, LAMBDA(k, SUMPRODUCT(--(A2:A1000=k))))>1)
MAP runs the count once per row, so use a fixed range such as A2:A1000 that covers your data. It is slower than COUNTIF on big sheets.
Match letter case exactly
If ANA@ and ana@ should count as different, use EXACT, which is case-sensitive:
=FILTER(A2:D1000, A2:A1000<>"", MAP(A2:A1000, LAMBDA(k, SUMPRODUCT(--EXACT(A2:A1000, k))))>1)
On the example only the three ben@ rows remain.
Extra spaces
COUNTIF ignores case but not spaces: ben@example.com with a trailing space is a different value, so COUNTIF doesn’t count it with the copy that has no space. Either run Data › Data cleanup › Trim whitespace on the column first, or build a cleaned key column and point every formula at it instead of column A:
=ARRAYFORMULA(IF(A2:A="", "", LOWER(TRIM(A2:A))))
If values still don’t match after trimming, look for non-breaking spaces, Gmail dots and other near-duplicates in the fuzzy duplicates guide.
Pitfalls
- #REF! instead of results. Something is in the way of the result. FILTER needs empty cells below and to the right; clear them or move the formula to a new tab.
- #N/A “No matches are found in FILTER evaluation”. There are no duplicates under your rule. Wrap the formula in
IFERROR(…, "No duplicates")if you want a friendlier message. - Range sizes don’t match. Every range in FILTER must have the same rows:
A2:DwithA2:Ais fine;A2:D100withA2:Agives an error. - The header row shows up. Start the ranges at row 2, not row 1, or the header counts as data.
- Editing the FILTER result. It’s a formula result, so typing over it breaks the formula with #REF!. Fix the data in the original table (or use the filter view method).
- A filter everyone sees. Data › Create a filter changes the sheet for every collaborator. Use a filter view if you’re only looking.
What to do once you’ve seen them
- Delete the extra copies: find and remove duplicates or UNIQUE vs Remove duplicates.
- Keep the newest row per email: keep the latest row.
- The copies hold different details (a phone on one, notes on another): merge duplicate rows.
- Stop new ones arriving: prevent duplicate entries.
FAQ
How do I show only duplicate rows in Google Sheets?
In an empty area, enter =FILTER(A2:D, A2:A<>"", COUNTIF(A2:A, A2:A)>1), where A is the column that defines a duplicate and A:D is the table. It lists every row whose value in A appears more than once, including the first copy, and updates as the data changes. Nothing in the original table is moved or deleted.
Can I filter the original table to duplicates instead of copying them?
Yes. Select the table, choose Data › Create a filter (or Data › Create filter view so other people don’t see it), open the filter menu on the key column, choose Filter by condition › Custom formula is, and enter =COUNTIF(A2:A, A2:A)>1. Rows whose value appears once are hidden; you can edit the remaining rows in place.
Does COUNTIF treat upper and lower case as duplicates?
Yes. Google’s help says COUNTIF is not case sensitive, so ANA@example.com and ana@example.com count as the same value. Extra spaces do count, though: a trailing space makes a different value. To match case exactly, use the EXACT version: MAP(A2:A1000, LAMBDA(k, SUMPRODUCT(--EXACT(A2:A1000, k))))>1 inside FILTER.
How do I list each duplicated value only once?
Wrap the filtered column in UNIQUE: =UNIQUE(FILTER(A2:A, A2:A<>"", COUNTIF(A2:A, A2:A)>1)). UNIQUE is case-sensitive, so if the copies differ in case, lowercase them first to get one entry per group: =ARRAYFORMULA(UNIQUE(FILTER(LOWER(A2:A), A2:A<>"", COUNTIF(A2:A, A2:A)>1))).
How do I show only the second and later copies?
Use a running count, which is 1 on the first copy and 2 or more on each later copy: =FILTER(A2:D, A2:A<>"", COUNTIFS(A2:A, A2:A, ROW(A2:A), "<="&ROW(A2:A))>1). These are the rows Data cleanup › Remove duplicates would delete if you ticked only that column.
How do I find the rows that are not duplicated at all?
Change >1 to =1: =FILTER(A2:D, A2:A<>"", COUNTIF(A2:A, A2:A)=1). That leaves only rows whose value appears exactly once, which is the same as removing every copy of each duplicate, including the original.
Why does my formula match values that aren’t the same?
COUNTIF treats * and ? in a value as wildcards, so a value such as a*b matches ab and axxb too. If your data can contain those characters, count with an exact comparison instead: MAP(A2:A1000, LAMBDA(k, SUMPRODUCT(--(A2:A1000=k))))>1.
Install free from Google Workspace MarketplaceSee SheetDupes
Want to test it first? Try it on sample data (makes a copy of a 12-row example sheet in your Drive).
Related guides
- How to Find and Remove Duplicates in Google Sheets: Highlight, Count, Delete and Keep the Original (2026)
- How to Highlight Duplicates in Google Sheets: Conditional Formatting Formulas for One Column, Whole Rows, Repeats Only and Two Sheets (2026)
- How to Compare Two Columns or Two Sheets in Google Sheets to Find Matches and Duplicates (2026)
- Duplicates That Don’t Match Exactly in Google Sheets: Case, Extra Spaces, Gmail Dots, Phone Formats and Typos (2026)
- How to Remove Duplicates in Google Sheets but Keep the Latest, First or Highest Row per Key (2026)
- How to Prevent Duplicate Entries in Google Sheets: Data Validation Rules, Warnings and a Small Script (2026)
- How to Count Duplicates in Google Sheets: per Value, Extra Rows, Unique Counts and Why the Numbers Disagree (2026)
- How to Combine Two Lists or Several Tabs in Google Sheets Without Duplicates: VSTACK, UNIQUE, One Row per Key and Other Files (2026)
- How to Merge Duplicate Rows in Google Sheets: Sum the Numbers, Join the Notes and Fill the Blanks (2026)
- UNIQUE vs Remove Duplicates in Google Sheets: Live or Static, Letter Case, Spaces, Columns and Headers (2026)
- How to Remove Duplicates Within a Cell in Google Sheets: Comma-Separated Lists, Tags, Line Breaks and Letter Case (2026)
- How to Find Duplicates Across Multiple Columns in Google Sheets: Rows That Match on Two or More Columns, and Values Repeated Anywhere in a Range (2026)
- How to Remove Duplicates Automatically in Google Sheets: Apps Script on a Daily Timer, on Form Submit or From a Menu (2026)
- How to Find Duplicates in Google Sheets but Ignore Blank Cells: Highlight, Count, List and Remove Without Empty Rows Getting in the Way (2026)
- How to Find Duplicate Transactions in Google Sheets: Double-Imported Rows, Invoices Paid Twice and Same-Amount Charges Within a Few Days (2026)
- How to Format Phone Numbers in Google Sheets: Strip Dashes and Spaces, Show (555) 010-1234, Handle +1 and Extensions, Then Find Duplicate Contacts (2026)
- How to Change Text Case in Google Sheets: UPPERCASE, lowercase, Proper Case Names, Sentence Case and Duplicates That Differ Only in Case (2026)