简体   繁体   English

如何针对 Excel 中多列中的所有值搜索一列中的一个值

[英]How to search for one value in a column against all values in multiple columns in Excel

I tried a lot to find a solution for the below issue, lets say I have column A,C,D;我尝试了很多来找到解决以下问题的方法,假设我有列 A,C,D; I want to take the fist value in column A and check if it exist in C or D entire columns;我想取A列中的第一个值并检查它是否存在于C或D整列中; if exist then I will return A, then take the second value in A and search in C & D columns and so on.如果存在,那么我将返回 A,然后取 A 中的第二个值并在 C & D 列中搜索,依此类推。

The bottom line, is that I want to find the count of each value in column A that existed in C or D最重要的是,我想找到 C 或 D 中存在的 A 列中每个值的计数

Thanks谢谢

=COUNTIF(C:C,A1:A4)+COUNTIF(D:D,A1:A4)

在此处输入图像描述

Using SUMPRODUCT Function使用SUMPRODUCT Function

Formula used in cell B2单元格B2中使用的公式

=SUMPRODUCT((A2=$C$2:$C$7)+(A2=$D$2:$D$7))

And Fill Down!并填满!

公式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM