简体   繁体   中英

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(data[[Status]:[Status]],"="&INDEX(Actionable,1), data[[Age (Days)]:[Age (Days)]],">"&"14", data[[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.

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]].

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". 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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