Home > Software design >  How to find if string contains a specific word in Google Sheets
How to find if string contains a specific word in Google Sheets

Time:01-26

I have one column with comma separeted strings and a several with words that can be in these strings. I have to find if a a word from a column name is in a string. I used a regexmatch formula, but it doesn't distinguisch TV from TV remote. How can I fix this?

Mu formula: arrayformula(if(L1<>"";if(REGEXMATCH($K$2:$K;L$1)=TRUE;"Wybrano";"");""))

enter image description here

CodePudding user response:

try:

=IFNA(BYCOL(L1:P1, LAMBDA(y, BYROW(K2:K, LAMBDA(x, 
 IF(MATCH("*"&y&"*", x, ), "Wybrano"))))))

enter image description here

  • Related