【发布时间】:2016-08-01 14:33:25
【问题描述】:
我有三列数据(每列包含一个控件的结果)。但是这三列中有一些单元格不包含数据(“缺少数据”或“错误”),所以当我计算平均值时,某种类型的控制是#VALUE。
我尝试使用AGGREGATE 函数来忽略错误,但我有一些标准可以选择不同控件的结果并分别计算平均值。例如:
Apple1 | length | 0.5
Apple1 | weight | 0.8
Apple1 | width | 0.6
Apple2 | length | 0.5
Apple2 | weight | absence of data
Apple2 | width | 0.6
Apple3 | length | error
Apple3 | weight | 0.8
Apple3 | width | 0.6
这是我的公式:
=AGGREGATE(1,6,$C:$C,$B:$B,"length"))
嗯,我想实现就像一个AVERAGEIFS 函数但是失败了。
【问题讨论】:
-
=AVERAGEIF($B:$B, "length", $C:$C)不行吗? -
谢谢@Jordan,我意识到这个问题比我问的要复杂一些......但幸运的是它已经解决了。祝你有美好的一天!
标签: excel excel-formula average