我正在尝试编写执行以下操作的语句:
如果 R7 = "Yes" AND S7 = "Yes" AND T7 = "Yes",则输出 1
如果 R7 = “Yes” AND S7 = “Yes” AND T7 = “No”,则输出 2
如果 R7 = "Yes" AND S7 = "No" AND T7 = "Yes",则输出 3
如果 R7 = "Yes" AND S7 = "No" AND T7 = "No",则输出 4
如果还有其他内容,则输出 5
我写了以下声明:
=IF(R7="Yes",IF(S7="Yes",IF(T7="Yes",1),IF(R7="Yes",IF(S7="Yes",IF(T7="No",2),IF(R7="Yes",IF(S7="No",IF(T7="Yes",3),IF(R7="Yes",IF(S7="No",IF(T7="No",4)))))))),5)
我知道我很接近,但问题是它应该何时显示 4,它只显示“FALSE” - 我的括号顺序错误吗?
有什么建议么?