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

How to filter the same data in two tables in excel

王林
王林Original
2020-04-10 09:48:4613019browse

How to filter the same data in two tables in excel

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

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

How to filter the same data in two tables in excel

Then switch to sheet2, select all the names and press Enter

How to filter the same data in two tables in excel

Switch to sheet1 again, then the function becomes =if(countif(Sheet2!A1:A44))

How to filter the same data in two tables in excel

Note: In this step, add 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, the ones 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 in excel

Recommended related tutorials: excel tutorial

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