C ccarruth Member Jul 25, 2018 #1 Thought I had this but doesn't work. Spreadsheet attached. Basic need is to return a value if cells in an adjacent range contain specific multiple values. Help! Attachments Chandoo text question.xlsx 8.2 KB · Views: 8
Thought I had this but doesn't work. Spreadsheet attached. Basic need is to return a value if cells in an adjacent range contain specific multiple values. Help!
H Haz Active Member Jul 25, 2018 #2 =IF(OR(B4:F4="green", B4:F4="bird"), "Valid", "") Confirm with CTRL+SHIFT+ENTER
N Nebu Excel Ninja Jul 26, 2018 #3 Hi: A Non-Array solution. =IF(SUM(COUNTIF($B2:$F2,{"green","bird"}),$B2:$F2)>=1,"Valid","") Thanks
B bosco_yip Excel Ninja Jul 26, 2018 #4 Perhaps, =IF(SUMPRODUCT(COUNTIF(B2:F2,{"green","bird"})),"Valid","") Or, =IF(SUMPRODUCT(1-ISERR(FIND({"green";"bird"},B2:F2))),"Valid","") Regards Bosco
Perhaps, =IF(SUMPRODUCT(COUNTIF(B2:F2,{"green","bird"})),"Valid","") Or, =IF(SUMPRODUCT(1-ISERR(FIND({"green";"bird"},B2:F2))),"Valid","") Regards Bosco