Hello! I'm trying to write two different formulas that show the following:
Typing in Cell B1...If Cell A1 contains "Apple" AND "Orange", but also DOES NOT contain "Banana" OR "Grape" OR "Pear", then return the value in cell D1, otherwise, return a blank.
Typing in Cell C1...If Cell A1 contains "Apple" AND "Orange", and ALSO contains "Banana" OR "Grape" OR "Pear", then return the value in cell D1, otherwise, return a blank.
I came up with this so far for the second set of criteria, but Excel won't accept it...not sure if I'm even on the right track...
=IF(AND(ISNUMBER(SEARCH("Apple",A1)),ISNUMBER(SEARCH("Orange",A1))),IF(OR(ISNUMBER(SEARCH("Banana",A1)),ISNUMBER(SEARCH("Grape",A1)),ISNUMBER(SEARCH("Pear",A1)))),D1,"")
Typing in Cell B1...If Cell A1 contains "Apple" AND "Orange", but also DOES NOT contain "Banana" OR "Grape" OR "Pear", then return the value in cell D1, otherwise, return a blank.
Typing in Cell C1...If Cell A1 contains "Apple" AND "Orange", and ALSO contains "Banana" OR "Grape" OR "Pear", then return the value in cell D1, otherwise, return a blank.
I came up with this so far for the second set of criteria, but Excel won't accept it...not sure if I'm even on the right track...
=IF(AND(ISNUMBER(SEARCH("Apple",A1)),ISNUMBER(SEARCH("Orange",A1))),IF(OR(ISNUMBER(SEARCH("Banana",A1)),ISNUMBER(SEARCH("Grape",A1)),ISNUMBER(SEARCH("Pear",A1)))),D1,"")