[英]Excel COUNTIFS cell equals range of cells AND cell from range equals another range
What formula can I use that will count the cells in my first sheet (ALL DATA) ... 我可以使用哪种公式来计算我的第一张表中的单元格(所有数据)...
Thanks 谢谢
I'm assuming that for the second criterion you just want to count rows where the column N value is equal to one of E2:E5
我假设对于第二个条件,您只想对列N值等于E2:E5
之一的行进行计数
Try this formula in Summary sheet 在摘要表中尝试此公式
=SUMPRODUCT(COUNTIFS('ALL DATA'!C:C,A2,'ALL DATA'!N:N,USERS!E2:E5))
COUNTIFS
returns an array of 4 values, one each for E2:E5
, so SUMPRODUCT
is used to sum that array to get the final result COUNTIFS
返回一个包含4个值的数组,每个值对应E2:E5
,因此SUMPRODUCT
用于对该数组求和以得到最终结果
Assumes all values in E2:E5 are different, otherwise rows may be double counted 假设E2:E5中的所有值都不同,否则行可能会被重复计算
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.