以下if语句报告“Too Many Arguments”
=IF(AND(G4="Other Revenue",(E4>200000)),("Pass"),IF(AND(G4="Trading Revenue",(E4>200000)),("Pass")),IF(AND(G4="NII",(E4>200000)),("Pass"),("Fail")))
知道为什么吗?
答案 0 :(得分:1)
=IF(AND(G4="Other Revenue",E4>200000),"Pass", IF(AND(G4="Trading Revenue",E4>200000),"Pass",IF(AND(G4="NII",E4>200000),"Pass","Fail")))
另外请不要使用这么多不必要的括号。您不需要在括号中覆盖简单的字符串表达式....
答案 1 :(得分:1)
在第二次"传递"之后你有一个额外的支架。这导致函数提前终止。试试这个:
=IF(AND(G4="Other Revenue",(E4>200000)),"Pass",IF(AND(G4="Trading Revenue",(E4>200000)),"Pass",IF(AND(G4="NII",(E4>200000)),"Pass","Fail")))
您的公式问题:
=IF(AND(G4="Other Revenue",(E4>200000)),("Pass"),IF(AND(G4="Trading Revenue",(E4>200000)),("Pass")),IF(AND(G4="NII",(E4>200000)),("Pass"),("Fail")))
^
|
This fella.