Forum Discussion
JDRAKE4524
Nov 26, 2019Copper Contributor
ISNUMBER(OR(SEARCH not producing expected results.
I am not sure why this is not working. I an no expert so bare with me. I have a column of text entries. I can use =ISNUMBER(SEARCH("CARD",D6)) to get a result TRUE/FALSE but I need to extend that ...
- Nov 27, 2019
Practically the same
=SUM(--ISNUMBER(SEARCH({"PIN","CARD"},D6)))
or, if return to initial formula
=OR(ISNUMBER(SEARCH("PIN",D6)),ISNUMBER(SEARCH("CARD",D6)))
SergeiBaklan
Nov 27, 2019Diamond Contributor
Practically the same
=SUM(--ISNUMBER(SEARCH({"PIN","CARD"},D6)))
or, if return to initial formula
=OR(ISNUMBER(SEARCH("PIN",D6)),ISNUMBER(SEARCH("CARD",D6)))
- JDRAKE4524Nov 27, 2019Copper Contributor
Thank you for your assistance. The second option worked as how I was looking for the results to be. The first one gave a 0 return (as I would have guessed as a SUM function) and not a FALSE.
Thank you again for your help.
John
- SergeiBaklanNov 27, 2019Diamond Contributor
John, you are welcome. In Excel FALSE and zero are equivalent, you may use any of them in condition.
- JDRAKE4524Nov 27, 2019Copper Contributor
Yes. That is true. For this instance I needed a return of FALSE for visual reasons more so than anything. Thanks