Show duplicate values ​​in Excel

Last updated on 03/10/2024
Reading time : 2 minutes

How to display only duplicate values ​​in an Excel column?

  1. Create a test with the COUNTIF function
    • The COUNTIF function allows you to count the lines corresponding to a criterion.
    • We will use this function to create a test when we find 2 or more data
  2. Use the FILTER function in Excel 365 to keep values ​​present more than once

In this example, the data has been added to a table whose name is tbl_Data.

Build the test to find duplicate values ​​in Excel

Since the arrival of propagated functions, the entire construction of the formulas has been transformed in Excel. Thus, we can write the COUNTIF function with a range of data as a search criterion.

=NB.IF(tbl_Data[Value];tbl_Data[Value])

COUNTIF written with a range of cells as a criterion

Then, just add a logic test to know if each value is present more than once

=NB.IF(tbl_Data[Value];tbl_Data[Value])>1

Transformation of NB.SI into logical test

Return duplicate values ​​only

La FILTER function expects to receive a logical test as a filtering criterion. We will indicate the result of the test with the COUNTIF function as a criterion for the FILTER function.

=FILTER(tbl_Data[Value];COUNTIF(tbl_Data[Value];tbl_Data[Value])>1)

FILTER and COUNTIF returns duplicate values

Keep each value only once

To finish, all we have to do is integrate this formula into the UNIQUE function to keep only one value

=SINGLE(FILTER(tbl_Data[Value];COUNTIF(tbl_Data[Value];tbl_Data[Value])>1))

Result of duplicate values

Related Articles

It is this same technique that allowed us to find the non-matches between 2 columns.

FILTER function to keep unmatched values

Leave comments

Your email address will not be published. Required fields are marked with *

This site uses Akismet to reduce unwanted. Learn more about how your feedback data is processed.

Microsoft MVP 2024

Newsletter

Once a month:
Tips and quizzes

    We won't spam you. You can unsubscribe at any time.

    Show duplicate values ​​in Excel

    Reading time: 2 minutes
    Last updated on 03/10/2024

    How to display only duplicate values ​​in an Excel column?

    1. Create a test with the COUNTIF function
      • The COUNTIF function allows you to count the lines corresponding to a criterion.
      • We will use this function to create a test when we find 2 or more data
    2. Use the FILTER function in Excel 365 to keep values ​​present more than once

    In this example, the data has been added to a table whose name is tbl_Data.

    Build the test to find duplicate values ​​in Excel

    Since the arrival of propagated functions, the entire construction of the formulas has been transformed in Excel. Thus, we can write the COUNTIF function with a range of data as a search criterion.

    =NB.IF(tbl_Data[Value];tbl_Data[Value])

    COUNTIF written with a range of cells as a criterion

    Then, just add a logic test to know if each value is present more than once

    =NB.IF(tbl_Data[Value];tbl_Data[Value])>1

    Transformation of NB.SI into logical test

    Return duplicate values ​​only

    La FILTER function expects to receive a logical test as a filtering criterion. We will indicate the result of the test with the COUNTIF function as a criterion for the FILTER function.

    =FILTER(tbl_Data[Value];COUNTIF(tbl_Data[Value];tbl_Data[Value])>1)

    FILTER and COUNTIF returns duplicate values

    Keep each value only once

    To finish, all we have to do is integrate this formula into the UNIQUE function to keep only one value

    =SINGLE(FILTER(tbl_Data[Value];COUNTIF(tbl_Data[Value];tbl_Data[Value])>1))

    Result of duplicate values

    Related Articles

    It is this same technique that allowed us to find the non-matches between 2 columns.

    FILTER function to keep unmatched values

    Newsletter

    Once a month:
    Tips and quizzes

      We won't spam you. You can unsubscribe at any time.

      Leave comments

      Your email address will not be published. Required fields are marked with *

      This site uses Akismet to reduce unwanted. Learn more about how your feedback data is processed.