Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Formula to return a value when the adjacent column's text contains any value from an array of text strings

$
0
0

In Google Sheets I have an array named "Tech_issues" with the following values:

Array namevalue 1value 2value 3value 4
Tech_issuescrashfrozeglitcherror

I'm looking to create a formula in column B that I can use to return value X if the corresponding cell in column A contains one (or more) of the words in the array, for example...

Survey responseTech issue
system crashes way too oftenX
I encountered an errorX
Nice design
Sell more products

There are other arrays and queries I want to use for other columns as well, this is just one example so if I can get this working I can do the rest.

So far I've tried the following but to no avail...

=IF(REGEXMATCH(A2,Tech_issues), "X", "")=isnumber(search(Tech_issues,A2))=IF(ISNUMBER(SEARCH(Tech_issues, A2)),"X","")=ArrayFormula(REGEXMATCH(A2, JOIN("|",Tech_issues)))

HELPPPPP


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>