寻前二列相同数据取另一列数据的平均值
http://127.0.0.1/data/attachment/forum/202202/08/184333joclik1di4l5jlcz.png如上图,绿色底纹是想要的效果,但不考虑有B13-B17这一列的数据
=AVERAGEIFS(D$3:D$10,B$3:B$10,LEFT(B13,4),C$3:C$10,RIGHT(B13,3)) =AVERAGEIFS(D$3:D$10,B$3:B$10,LEFT(B13,4),C$3:C$10,RIGHT(B13,3)*1) =AVERAGEIFS(D:D,B:B,LEFT(B13,4),C:C,RIGHT(B13,3)) 谢谢高手,如果不考虑有B13:B17这列的数据呢? =SUMPRODUCT(($B$3:$B$10&$C$3:$C$10=$B13)*$D$3:$D$10)/SUMPRODUCT(N($B$3:$B$10&$C$3:$C$10=$B13)) B13=INDEX(B$3:B$10&C$3:C$10,MATCH(,COUNTIFS(B$12:B12,B$3:B$10&"*",B$12:B12,"*"&C$3:C$10),))数组公式
D13=AVERAGEIFS(D$3:D$10,B$3:B$10,LEFT(B13,4),C$3:C$10,RIGHT(B13,3)) B13: =IFERROR(INDEX($B$3:$B$10&$C$3:$C$10,SMALL(IF(MATCH($B$3:$B$10&$C$3:$C$10,$B$3:$B$10&$C$3:$C$10,)=ROW($1:$8),ROW($1:$8),),ROW(A1))),"") 三键结束下拉 D13:=AVERAGEIFS($D$3:$D$10,$B$3:$B$10,LEFT(B13,4),$C$3:$C$10,--RIGHT(B13,3))
页:
[1]