if 函数的嵌套使用:
如果按等级来判断某个变量,IF函数的格式如下:
IF(E2>=85,"优",IF(E2>=75,"良",IF(E2>=60,"及格","不及格")))
函数从左向右执行。首先计算E2>=85,如果该表达式成立,则显示“优”,如果不成立就继续计算E2>=75,如果该表达式成立,则显示“良”,否则继续计算E2>=60,如果该表达式成立,则显示“及格”,否则显示“不及格”。
I will list the number:
Create the 函数 based on below step:
IF(E2>=60,"及格","不及格") --- > IF(E2>=75,"良",IF(E2>=60,"及格","不及格")) ---> IF(E2>=85,"优",IF(E2>=75,"良",IF(E2>=60,"及格","不及格")))
分步测试。 it is very useful