google-sheetsmatchspreadsheettextjoinmultiple-matches

How to use query function to exclude names based on criteria from another sheet?


How to use query function to exclude names based on criteria from another sheet ? Thank you

https://docs.google.com/spreadsheets/d/1Yl-oBui4ji6AzGg47FAe68fi2PqHTUC08kYhBMtB2DY/edit?usp=sharing

enter image description here


Solution

  • use:

    =QUERY({A2:B}, "where not Col1 matches '"&TEXTJOIN("|", 1, Criteria!A:A)&"'")
    

    enter image description here