Excel:如何处理一个单元格中的多个“if”条件

我知道如何用= if来testing一个条件。

但是,我怎样才能在一个单元格中testing多个条件。

Exemple: if the number in a cell A1 = 0 we write null else if the number is > 10 we write "number > 10" else if the number is >15 and <20 we write "number >15 and <20" 

任何人都可以帮助请。 谢谢。

这将完成你所描述的嵌套IFfunction。 但是,如果数字恰好为10,则不会考虑在内。

 =IF(A1=0,"Null",IF(AND(A1>15,A1<20),"number >15 and <20",IF(A1>10,"number > 10"))) 

编写嵌套的IF函数调用。 例如:

 IF(A1=0, "null", IF(A1 > 10, "number > 10", IF(AND(A1 > 15, A1 < 20), "number >15 and <20", "something else"))) 

使用嵌套的IF函数:

 =IF(A1=0,"null",IF(AND(A1>15,A1<20),"number >15 and <20",IF(A1>10,"number > 10", "n/a")))