这样的规定很有意思,我要是老师,我一定要一个每科都考不上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)
思路是:
n为学生总数,将分数按升序排序
如果(IF)计数(COUNT)分数<20 >=1,总分(SUM)B1:B(n-4)
否则(ELSE)总分(SUM)B1:B(n)
ENDIF
具体的调试就靠你了
jiecaishidai@163.com 数据发过来要求写清楚