Home  >  Article  >  Topics  >  How to filter the same data in two tables

How to filter the same data in two tables

藏色散人
藏色散人Original
2020-04-23 09:16:3216547browse

How to filter the same data in two tables

How to filter the same data in two tables

Put two worksheets in one window, such as As shown in the picture: sheet1 is for all students, sheet2 is the names of students in a certain class.

How to filter the same data in two tables

Input =if (countif()) in the blank of the same line of the corresponding name in sheet1

How to filter the same data in two tables

and then switch Go to sheet2, select all the names and press Enter

How to filter the same data in two tables

## Then switch to sheet1, then the function becomes =if(countif(Sheet2!A1:A44))

How to filter the same data in two tables

Note: In this step, the letters (A here) and numbers (1 and 44 here) must be preceded by the symbol $,=if(countif( Sheet2!$A$1:$A$44))

Finally, complete the function =if(countif(Sheet2!$A$1:$A$44,A2),"S","F"), After the input is completed, press Enter. Those shown as S are students in this class, and those shown as F are not. Then pull down the fill from this row, and all students can be filtered.

How to filter the same data in two tables

The above is the detailed content of How to filter the same data in two tables. 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