多个选择的平均值

时间:2014-07-30 14:50:13

标签: excel

我需要找到BusyNoAnswerNoResource或包含Refused的结果的平均响应时间。 (我确实有其他类型,但这些不包含在样本数据中。)我可以得到每个类型的总数:

=SUM(COUNTIF(RAWDATA!K:K,{"*No*","Busy","*Refused*"}))  

但我需要使用此过滤器来返回响应时间的平均值。我尝试过使用AVERAGEIF,但我得到57s,因为它没有包含所有值。任何帮助都会很棒。

Respone Time         Outcome
0                Busy
19               NoAnswer
6                NoResource
4                NoAnswer
7                NoAnswer
38               NoAnswer
58               NoAnswer
41               NoAnswer
56               NoAnswer
180              NoAnswer
72               NoAnswer
65               NoAnswer
71               NoAnswer
29               NoAnswer
105              NoAnswer
180              NoAnswer
122              NoAnswer
13               NoAnswer
23               NoAnswer
8                NoAnswer

 Average 54.85  

2 个答案:

答案 0 :(得分:1)

请尝试将公式划分为:

=SUM(SUMIF(RAWDATA!K:K,{"*No*","Busy","*Refused*"},J:J))

答案 1 :(得分:1)

不确定这是否是最优雅的方式,但这似乎有效。你必须调整范围。

=SUM( SUMIF(B:B,"*No*",A:A), SUMIF(B:B,"Busy",A:A), SUMIF(B:B,"*Refused*",A:A) ) / SUM( COUNTIF(B:B,"*No*"), COUNTIF(B:B,"Busy"), COUNTIF(B:B,"*Refused*") )

编辑:每个用户pnuts的更短版本

=SUM(SUMIF(B:B,{"*No*","Busy","*Refused*"},A:A))/SUM(COUNTIF(B:B,{"*No*","Busy","*Refused*"}))