公式如下:
=IF(A2<60,"F",IF(A2<70,"D",IF(A2<80,"C",IF(A2<90,"B","A"))))
个人不建议使用此循环
因为一旦B2有一次输入错误,公式整体包括后期都会错误
可以加入一列来做 合计!
=if(A1<60,"F",if(A1<70,"D",if(A1<80,"C",if(A1<90,"B","A"))))
或者
=LOOKUP(D1,{0,60,70,80,90},{"F","D","C","B","A"})
这是个offset函数公式里的第4个参数,引用的行高
counta(sheet1!$c$c)-1
表示统计sheet1表c列非空单元格的个数减去1,
一般是因为这一列有个表头之类的字段,在作为offset的参数时不需要引用,故需-1
假设数据在A1,B1输入公式=LOOKUP(A1,{0,"F";60,"D";70,"C";80,"B";90,"A"})