我有以下公式来搜索“IT”这个词。如果找到,则返回单词“Red”;否则“蓝色”。
我怎样才能这样做,但是要搜索多个单词?
=IF(IFERROR(SEARCH("IT";D5);0);"Red";"Blue")
答案 0 :(得分:2)
=IF(AND(ISERROR(SEARCH("IT",D5)),ISERROR(SEARCH("otherWord",D5))),
"Neither of the two words are there","One or both words are there")