总共10名考生,地理科目考试成绩如下表,现需按照30%,50%,15%,5%比例确定学生等级分别为A、B、C、D.
步骤一:用rank函数计算出某生在特定群体中的排名,在D2单元中输入公式:“RANK(C2,$C$2:$C$11)”,即C2在$C$2:$C$11区域中的位次。
步骤二:计算位次在10名学生中的百分比,即“=D2/10”,结果如下图:
步骤三:按照区间百分比,用if函数判断并赋值,在F2中输入“=IF(RANK(C2,$C$2:$C$11)/COUNTA($C$2:$C$11)<=0.3,"A",IF(RANK(C2,$C$2:$C$11)/COUNTA($C$2:$C$11)<=0.8,"B",IF(RANK(C2,$C$2:$C$11)/COUNTA($C$2:$C$11)<=0.95,"C",IF(RANK(C2,$C$2:$C$11)/COUNTA($C$2:$C$11)<=1,"D"))))”.