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

王林
Release: 2020-04-10 13:09:04
Original
13020 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template