Forum Discussion

LWMorton's avatar
LWMorton
Copper Contributor
May 20, 2019
Solved

Searching For Text

I am looking to create a formula that searches a cell full of text and if it contains words from a certain list, the cell will display "0", if it contains words from a different list, then it will di...
  • SergeiBaklan's avatar
    May 20, 2019

    LWMorton , perhaps

    =IF(SUMPRODUCT(--ISNUMBER(SEARCH($AF$2:$AF$8,B2))),
          4,
          IF(SUMPRODUCT(--ISNUMBER(SEARCH($AE$2:$AE$8,B2))),
          3,
          IF(SUMPRODUCT(--ISNUMBER(SEARCH($AD$2:$AD$8,B2))),
          2,
          IF(SUMPRODUCT(--ISNUMBER(SEARCH($AC$2:$AC$8,B2))),
          1))))

    in C2 and copy it to another cells

Resources