EXCEL求一组数据的平均值
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 20:33:20
EXCEL求一组数据的平均值
基准价(元) 序号 报价 (元)
25
1 10
2 20
3 30
4 40
5 50
6 80
7 80
8 80
9 90
10 100
分析报价,只有大于基准数25,才进入平均值计算,1#、2#报价为无效,不参与平均值计算
选取有效报价,统计有效报价数量,大于基准数25的就剩8家单位,有效报价家数A=8家
在有效报价中去掉报价高的B家不参与平均值计算,B=A*40%(四舍五入)
在有效报价中去掉低去掉报价低的C家不参与平均值计算,C=A*10%(四舍五入)
剩下的50%报价计算平均值
注:基数25,需要引用单元格数据.如果统计区域出现空格,计算结果还准确吗?
已有不完善的公式参考:
=(SUMPRODUCT((C5:C19>=SMALL(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.1,0)))*(C5:C19=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.4,0)))*C5:C19)-SMALL(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.1,0))-LARGE(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.4,0)))/(SUMPRODUCT((C5:C19>=SMALL(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.1,0)))*(C5:C19=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.4,0)))*1)-2)
基准价(元) 序号 报价 (元)
25
1 10
2 20
3 30
4 40
5 50
6 80
7 80
8 80
9 90
10 100
分析报价,只有大于基准数25,才进入平均值计算,1#、2#报价为无效,不参与平均值计算
选取有效报价,统计有效报价数量,大于基准数25的就剩8家单位,有效报价家数A=8家
在有效报价中去掉报价高的B家不参与平均值计算,B=A*40%(四舍五入)
在有效报价中去掉低去掉报价低的C家不参与平均值计算,C=A*10%(四舍五入)
剩下的50%报价计算平均值
注:基数25,需要引用单元格数据.如果统计区域出现空格,计算结果还准确吗?
已有不完善的公式参考:
=(SUMPRODUCT((C5:C19>=SMALL(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.1,0)))*(C5:C19=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.4,0)))*C5:C19)-SMALL(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.1,0))-LARGE(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.4,0)))/(SUMPRODUCT((C5:C19>=SMALL(IF(C5:C19>=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.1,0)))*(C5:C19=L8,C5:C19),ROUND(COUNTIF(C5:C19,">="&L8)*0.4,0)))*1)-2)
见下图,A2定义名称为 "基准价"
d3中的公式为
=(SUMIF($C:$C,">"&SMALL($C:$C, COUNTIF($C:$C,"<="&基准价)+ ROUND(COUNTIF($C:$C,">="&基准价)*0.4,0)),$C:$C)-SUMIF($C:$C,">="&LARGE($C:$C, ROUND(COUNTIF($C:$C,">="&基准价)*0.1,0)),$C:$C))/(COUNTIF($C:$C,">="&基准价)- ROUND(COUNTIF($C:$C,">="&基准价)*0.4,0)- ROUND(COUNTIF($C:$C,">="&基准价)*0.1,0))
可以达到你的要求,你试一试
d3中的公式为
=(SUMIF($C:$C,">"&SMALL($C:$C, COUNTIF($C:$C,"<="&基准价)+ ROUND(COUNTIF($C:$C,">="&基准价)*0.4,0)),$C:$C)-SUMIF($C:$C,">="&LARGE($C:$C, ROUND(COUNTIF($C:$C,">="&基准价)*0.1,0)),$C:$C))/(COUNTIF($C:$C,">="&基准价)- ROUND(COUNTIF($C:$C,">="&基准价)*0.4,0)- ROUND(COUNTIF($C:$C,">="&基准价)*0.1,0))
可以达到你的要求,你试一试