简体   繁体   English

在Excel中的数组中为2条条件使用Averageif

[英]Using Averageif for 2 criteria in an Array in Excel

I'm trying to use the Averageif(s) formula for an array with two criteria for data that is in columnar form, with skill (ie, SAP, column C), company (ie, Facebook, column D), and rate (ie, $25, column E). 我正在尝试对具有两个条件的数组的数组使用Averageif(s)公式,以数据为列格式,具有技能(即SAP,C列),公司(即Facebook,D列)和费率(即$ 25,E栏。

I'd like the find the average rate for each skill with the following criteria: 我想按以下标准找到每项技能的平均得分:

  1. the averageif formula will ignore 0s so as to not skew the average averageif公式将忽略0,以免造成平均值偏差
  2. the averageif formula will take the average of each skill. averageif公式将取每个技能的平均值。

So far I've tried =AVERAGEIF($C$7:$C$138,C7=$C$7:$C$138,$E$7:$E$138) but it is showing a #DIV/0 error. 到目前为止,我已经尝试过=AVERAGEIF($C$7:$C$138,C7=$C$7:$C$138,$E$7:$E$138)但是它显示#DIV/0错误。

How do I incorporate criteria #1 into the formula? 如何将标准#1纳入公式?
Thank you! 谢谢!

像这样尝试AVERAGEIFS

=AVERAGEIFS($E$7:$E$138,$E$7:$E$138,"<>0",$C$7:$C$138,C7)

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

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