Home >Common Problem >How to use ifcountif function to find duplicates in two columns

How to use ifcountif function to find duplicates in two columns

藏色散人
藏色散人Original
2020-10-09 11:26:5325782browse

Use the ifcountif function to find two duplicate columns: first open the table file that needs to be filtered; then enter the formula "=countif (C:C, B:B)" in the blank box and press the Enter key; finally Press the shortcut key "ctrl shift L" to open the filter.

How to use ifcountif function to find duplicates in two columns

Recommended: "excel tutorial"

The countif function filters duplicate data. The advantage is that it can quickly filter huge data. At the same time, the two columns of data can correspond one-to-one through sorting, making it more accurate and convenient for inspection.

As shown in the figure, we now need to filter out the data in data A that is duplicated in data B. If we use conditional formatting to filter, the data in column A will be confused by the repeated data, so the data will be inaccurate.

How to use ifcountif function to find duplicates in two columns

So we use the function "countif". As shown in the figure, take another column "Filter". Enter "=countif (C:C,B:B)" in the blank box and press Enter. Here we need to pay attention to the order of selecting the sequence, because we want to filter out "data A", so we need to give priority to "data B", that is, "C:C" in the brackets comes first.

How to use ifcountif function to find duplicates in two columns

Then move the mouse to the lower right corner of the grid and double-click the left mouse button. This way the function will be copied automatically. as the picture shows.

How to use ifcountif function to find duplicates in two columns

How to use ifcountif function to find duplicates in two columns

Then move the mouse to the leftmost serial number "1" and quickly select the first row. Then press the shortcut key "ctrl shift L" to open filtering. as the picture shows.

How to use ifcountif function to find duplicates in two columns

Then click the "little triangle" in the filter column. As shown in the picture, check off option "0" and press the confirm key.

How to use ifcountif function to find duplicates in two columns

The last filtered out options are the duplicate options of "Data A" and "Data B". Here you will see that the number "2" is displayed because the "data B" of the corresponding row has two identical data. If there are three identical ones, "3" will be displayed.

How to use ifcountif function to find duplicates in two columns

The above is the detailed content of How to use ifcountif function to find duplicates in two columns. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn