使用3个条件

时间:2018-05-16 21:43:00

标签: excel-formula excel-2010

我需要帮助编写嵌套的IF语句。这是我的条件:

1st condition - if A1 is blank and G1 is blank, return a blank value; 
2nd condition - if A1>0 and G1 is blank, return value for E1-A1; 
Last - if A1>0 and G1>0, return G1-A

我似乎无法写出正确的IF AND语句。

1 个答案:

答案 0 :(得分:0)

使用此

=IF(A1+G1=0,"",IF(G1="",E1,G1)-A1)

enter image description here

相关问题