Google 工作表使用查询仅显示一个唯一行

Google Sheets show only one unique row using Query

我有一个组合选项卡,它引入了 sheet 的负载以提供主控 sheet,但我正在尝试找出一种方法,在出现重复时仅显示一次

我的想法是我需要使用查询,因为我只需要设置一些条件

D 列包含每一行的唯一键,但该行将出现在其他 sheet 中略有不同,只有单元格 D 的值相同

=UNIQUE(QUERY(Combined!A2:Z,"select * where D matches '"&TEXTJOIN("|",1,Combined!D2:D)&"'" and (E='Cross' or E='Con') ,0))

我以为我可以像上面那样使用 matches 和 unique 来实现这一点,但遗憾的是我没有取得任何进展

任何指导都很好

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

将其全部包装在QUERY中,并根据需要进一步查询:

=ARRAYFORMULA(IFERROR(VLOOKUP(UNIQUE(QUERY(IF(COUNTIF(Combined!D:D, Combined!D:D)>1, 
 {Combined!D:D, Combined!A:C}, ), "select Col1 where Col1 is not null")),
 QUERY(IF(COUNTIF(Combined!D:D, Combined!D:D)>1, {Combined!D:D, Combined!A:C}, ), 
 "where Col1 is not null"), {2,3,4,1}, 0)))