这样的规定很有意思,我要是老师,我一定要一个每科都考不上20分的学生。
例如成绩在B列,将排名、均分、及格率和优秀率的统计结果分别放在E、F、G和H列
1、排名
=RANK(D2,$D$2:$D$12)
2、均分
=IF(MIN(B2:B12)<20,(SUM(B2:B12)-SMALL(B2:B12,1)-SMALL(B2:B12,2)-SMALL(B2:B12,3)-SMALL(B2:B12,4))/(COUNT(B2:B12)-4),AVERAGE(B2:B12))
3、及格率
=IF(SMALL(B2:B12,1)<20,(COUNTIF(B2:B12,">=60")/(COUNT(B2:B12)-4))*100,(COUNTIF(B2:B12,">=60")/COUNT(B2:B12))*100)
4、优秀率
=IF(SMALL(B2:B12,1)<20,(COUNTIF(B2:B12,">=80")/(COUNT(B2:B12)-4))*100,(COUNTIF(B2:B12,">=80")/(COUNT(B2:B12)-4))*100)