=IF(AND(C1>=5,C1<10),5,IF(AND(C1>=10,C1<15),10,IF(AND(C1>=15,C1<20),15,IF(AND(C1>=20,C1<25),20))))
用AND函数是指里面的所有条件都要成立,AND(条件1,条件2,条件3。、、)
用OR函数是指里面有一个成立就可以,OR(条件1,条件2,条件3,、、、)
=IF(C1<5,"",IF(C1<10,5,IF(C1<15,10,IF(C1<20,15,IF(C1<25,20,"")))))
可以采用if函数
=IF(C1<5,"小于5",IF(C1<10,5,IF(C1<15,10,IF(C1<20,15,IF(C1<25,20,"大于25")))))