=IF(ISNUMBER(SEARCH("consumer", I4)),IF(ISNUMBER(SEARCH("compliance", I4))*AND(L4="Complete",AND(P4="Yes",Q4="No")),1,0))
我正在尝试在特定列中搜索两个值,然后比较另外两列以获得返回值为1或0但是我得到一个" false"
答案 0 :(得分:1)
这不是您使用AND()
IF(AND(OR(ISNUMBER(SEARCH("compliance",I4)),ISNUMBER(SEARCH("consumer", I4))),L4="Complete",P4="Yes",Q4="No"),1,0)