条件平均值
条件求班级平均分,用averageif解决不了,不想增加列,有没有直接公式J4=SUMPRODUCT(($B$3:$B$34=I4)*$C$3:$G$34)/SUMPRODUCT(($B$3:$B$34=I4)*($C$2:$G$2=$C$2:$G$2)*1),下拉。 求的值是错的 值是错的 可以加indirect 函数,回去试下 j4=AVERAGE(IF(B$3:B$34=I4,C$3:G$34))
数组 =IF(I4="","",AVERAGEIF(B$3:B$34,I4,C$3:G$34)) =SUMPRODUCT(($B$3:$B$34=I4)*MMULT($C$3:$G$34,{1;1;1;1;1}))/(COUNTIF($B$3:$B$34,I4)*5)
K4:K8{=AVERAGE(IF((B$2:B$34=J4)*(C$1:G$1=K$3),C$2:G$34)) 这样?
单选2:=AVERAGE(IF($B$3:$B$34=I4,OFFSET($C$2,,MATCH($J$3,$C$2:$G$2,),COUNT($C$3:$C$34))))
页:
[1]