是否有可能根据另一个计数进行计数?

时间:2016-10-19 11:28:27

标签: excel excel-formula

我有一个公式,可以计算不符合特定条件的答案。下面是公式:=COUNTA(K3:K325)-SUM(COUNTIF(K3:K325,"*" & {"Not Interested","Career Link","OVR","VBA","No Show","Vet Canceled"} & "*"))我有一个第二个公式,它计算了10月份期间支持Ed的答案:=COUNTIFS(Referrals!$H$3:H$325,"Support Ed",Referrals!$A$3:$A$325,"<"&'Month Source'!K7)(10/31/16),&amp;另一个11个月,=COUNTIFS(Referrals!$H$3:$H$325,"Support Ed",Referrals!$A$3:$A$325,">="&'Month Source'!L6,Referrals!$A$3:$A$325,"<="&'Month Source'!L7)(11/30/16)我试图在一个月内计算答案与上述文字不符的次数。

1 个答案:

答案 0 :(得分:1)

To count everything in your range but certain values, you just need to modify the counting formula you already have. I gathered that your data is always comprised in rows 3 to 325 so wrote the formula accordingly. I also suggest that you create a list of the elements you want to count (or in this case not count) as it makes it easier to add or delete elements from a list than go in every formula you have:

=ROW(K325)-2-SUMPRODUCT(COUNTIF(K3:K325,"*" & Named_List & "*"))

I'm not sure how your data is arranged by month so I couldn't add that, but you seem to have figured out that part already. You can probably use what you already have for other formulas with this one.