Search code examples
regexfiltergoogle-sheetsgoogle-sheets-querygoogle-query-language

Query where values contain values from another sheet


I need to query a sheet in another sheet and return and filter a list by matches containing. Heres my sheet:

Sheet2:

0

Sheet1:

0


Solution

  • use FILTER instead like:

    =FILTER(Sheet2!A:B, REGEXMATCH(Sheet2!A:A, TEXTJOIN("|", 1, D2:D)))
    

    0