[英]Count Rows with Multiple Criteria
I am going to count rows based on the values of two columns (ie, count if the Priority is "1" and Status is "not defined").我将根据两列的值计算行数(即,如果优先级为“1”且状态为“未定义”,则计算)。 Here is an example:这是一个例子:
Priority优先 | Status地位 |
---|---|
1 1 | implemented实施的 |
0 0 | implemented实施的 |
1 1 | not defined没有定义的 |
0 0 | not defined没有定义的 |
0 0 | implemented实施的 |
1 1 | not defined没有定义的 |
1 1 | implemented实施的 |
1 1 | implemented实施的 |
which I would like to get 2 because there are only two rows with Priority = 1 and Status = "not defined".我想得到 2 因为只有两行优先级 = 1 和状态 =“未定义”。
I tried the following but not successful in this regard:我尝试了以下但在这方面没有成功:
=SUMPRODUCT((COUNTA(M3:M20))*(J3:J20="not defined"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.