简体   繁体   English

具有多个引用命名范围的单元格的CountIF的Excel公式

[英]Excel Formula for CountIFs with multiple cell referenced Named Range

I am trying to count all the instances within a table (table name = "data") using the CountIFs formula: 我正在尝试使用CountIFs公式计算表(表名称=“数据”)中的所有实例:

=COUNTIFS(data[[Status]:[Status]],"="&INDEX(Actionable,1), data[[Age (Days)]:[Age (Days)]],">"&"14", data[[Support Owner]:[Support Owner]],"="&$B38) = COUNTIFS(data [[状态]:[状态]],“ =”&INDEX(Actionable,1),数据[[年龄(天)]:[年龄(天)]],“>”&“ 14”,数据[[Support Owner]:[Support Owner]],“ =”&$ B38)

The formula works right now because I am only referencing the value in the first row of the Named Range "Actionable" by using the INDEX function. 该公式现在有效,因为我仅使用INDEX函数引用了“可操作”命名范围的第一行中的值。

What I want to do is be able to have the formula look at all the values in the named range and find all the instances in the column data[[Status]:[Status]]. 我想做的是能够使公式查看命名范围内的所有值,并在列data [[Status]:[Status]]中找到所有实例。

Is this possible? 这可能吗?

If you use the named range alone as the criterion then the COUNTIFS formula will return an array (one value for each value in Actionable ) so you can then wrap the whole thing in a SUMPRODUCT function to get the sum of that array without "array entry". 如果仅使用命名范围作为准则,则COUNTIFS公式将返回一个数组( Actionable每个值一个值),因此您可以将整个内容包装在SUMPRODUCT函数中,以获取该数组的总和,而无需“数组输入” ”。 That sum represents your total count, ie 那笔款项代表您的总数,即

=SUMPRODUCT(COUNTIFS(data[[Status]:[Status]],Actionable,data[[Age (Days)]:[Age (Days)]],">14", data[[Support Owner]:[Support Owner]],$B38))

Note - if Actionable contains duplicates then you will also count those values more than once 注意-如果Actionable包含重复项,那么您还将多次计数这些值

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

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