假设原始数据在A1:A20中,求你要求的平均值,B1或任意单元格中输入
=AVERAGE(IF((A1:A20
同时按下CTRL+SHIFT+回车,输入数组公式。
数组公式也可以简化为
=AVERAGE(IF(ABS(A1:A20/AVERAGE(A1:A20)-(0.5+1.35)/2)<0.425,A1:A20))
或
=AVERAGE(IF(ABS(A1:A20/AVERAGE(A1:A20)-92.5%)<42.5%,A1:A20))
假设这个区域是A1:A100单元格
在B1单元格输入公式后按SHIFT+CTRL+ENTER
=average(if((a1:a100>=0.5*average(A1:A100))*(a1:a100<=1.35*average(A1:A100)),A1:A100)
假设你的数据在a1:a10区域内,则你可以在A11单元格内输入以下公式
=AVERAGEIFS(A1:A10,A1:A10,">"&AVERAGE(A1:A10)*0.5,A1:A10,"<"&AVERAGE(A1:A10)*1.35)
试试看
=AVERAGEIFS(A1:A10,A1:A10,">"&AVERAGE(A1:A10)*0.5,A1:A10,"<"&AVERAGE(A1:A10)*1.35)
或者用公式=SUMPRODUCT((A1:A10>AVERAGE(A1:A10)*0.5)*(A1:A10