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)

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.

RowA: EmailB: NameC: PlanCOUNTIF of the email
2ana@example.comAnaBasic2 ✔
3ben@example.comBenPro3 ✔
4cara@example.comCaraBasic1
5ANA@example.comAna B.Pro2 ✔
6ben@example.comBenjaminPro3 ✔
7dev@example.comDevBasic1
8ben@example.comBenBasic3 ✔
9eve@example.comEvePro1

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).

  1. Select the table, headers included.
  2. 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.
  3. Click the filter icon in the Email header and choose Filter by condition › Custom formula is.
  4. 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

What to do once you’ve seen them

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.

Want to review duplicate groups without writing formulas? SheetDupes (disclosure: we make it) is a Google Sheets add-on for duplicate rows. Pick the columns that define a duplicate in the sidebar and preview the matching groups, then highlight the extra rows without changing any values, and only then remove them or merge each group into one row. It copies a backup tab before it removes or merges anything, ignores extra spaces and, optionally, letter case and punctuation. Preview and Highlight are free on any size sheet; there is a 14-day free trial with no credit card, and writes remain free after the trial on sheets with up to 2,000 data rows during launch (through Jan 31, 2027; 500 after that). It only reads and writes the spreadsheet you have open, and your data is not sent to Loomwise. It is live on the Google Workspace Marketplace.
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