Google 工作表查询和 'not in'

Google Sheets Queries and 'not in'

我正在尝试拼凑一个执行几项操作的查询。第一,我希望它列出一列中的所有名称,第二,我只希望它列出该列中不存在于列数组中的名称。

=QUERY(QUERY(Breakdown!$A:$B), "select Col1 where Col1 != '' and Col2 = 'Warrior' order by Col1 Asc")

我做到了这一点,它按我的意愿显示了列中的所有名称,但是当我开始添加 'not in' 类型参数时,我会以任何方式打破它。如何检查 ='Raid Comp'!A2:Q10 范围内不存在 Col1?

这是电子表格:https://docs.google.com/spreadsheets/d/1X0GiOCAAve1CR4A3JG2Ybf-daMvrrhAsZF5V3XEdn4E/edit?usp=sharing

我想做的是,一旦在彩色区域中输入了名称,如果输入的名称存在于彩色区域下方的列表中,则该名称将从列表中删除。

示例:

在查询中尝试正则表达式:

=QUERY({Breakdown!$A:$B}, 
 "select Col1 
  where Col2 = 'Warrior' 
    and not Col1 matches '"&TEXTJOIN("|", 1, 'Raid Comp'!A2:Q10)&"'  
  order by Col1 asc")