Google sheet countifs 带复选框的多个条件范围

Google sheet countifs multiple criteria range with checkboxes

我试图在勾选复选框后显示项目名称+图像。如果复选框被勾选两次,该项目应该显示两次 - 如果一个项目的所有复选框都被勾选则显示 3 次。

当前函数不起作用:

ifna(filter(BT!A5:B,BT!C5:C),if({1,1},char(999)));
ifna(filter(BT!A5:B,BT!D5:D),if({1,1},char(999)));
ifna(filter(BT!A5:B,BT!E5:E),if({1,1},char(999))); 
ifna(filter(BT!G5:H,BT!I5:I),if({1,1},char(999))); 
ifna(filter(BT!G5:H,BT!J5:J),if({1,1},char(999))); 
ifna(filter(BT!G5:H,BT!K5:K),if({1,1},char(999))); 
ifna(filter(BT!M5:N,BT!O5:O),if({1,1},char(999))); 
ifna(filter(BT!M5:N,BT!P5:P),if({1,1},char(999))); 
ifna(filter(BT!M5:N,BT!Q5:Q),if({1,1},char(999)));
ifna(filter(Hyjal!A5:B,Hyjal!C5:C),if({1,1},char(999)));
ifna(filter(Hyjal!A5:B,Hyjal!D5:D),if({1,1},char(999)));
ifna(filter(Hyjal!A5:B,Hyjal!E5:E),if({1,1},char(999))); 
ifna(filter(Hyjal!G5:H,Hyjal!I5:I),if({1,1},char(999))); 
ifna(filter(Hyjal!G5:H,Hyjal!J5:J),if({1,1},char(999))); 
ifna(filter(Hyjal!G5:H,Hyjal!K5:K),if({1,1},char(999))); 
ifna(filter(Hyjal!M5:N,Hyjal!O5:O),if({1,1},char(999))); 
ifna(filter(Hyjal!M5:N,Hyjal!P5:P),if({1,1},char(999))); 
ifna(filter(Hyjal!S5:T,Hyjal!U5:U),if({1,1},char(999))); 
ifna(filter(Hyjal!S5:T,Hyjal!V5:V),if({1,1},char(999))); 
ifna(filter(Hyjal!S5:T,Hyjal!W5:W),if({1,1},char(999))); 
ifna(filter(Hyjal!M5:N,Hyjal!Q5:Q),if({1,1},char(999)))}, 
countifs(Hyjal!C:W,true,BT!C:W,true),,2,1)

如果我为每个 sheet 拆分函数并尝试,它会起作用。

ifna(filter(Hyjal!A5:B,Hyjal!C5:C),if({1,1},char(999)));
ifna(filter(Hyjal!A5:B,Hyjal!D5:D),if({1,1},char(999)));
ifna(filter(Hyjal!A5:B,Hyjal!E5:E),if({1,1},char(999))); 
ifna(filter(Hyjal!G5:H,Hyjal!I5:I),if({1,1},char(999))); 
ifna(filter(Hyjal!G5:H,Hyjal!J5:J),if({1,1},char(999))); 
ifna(filter(Hyjal!G5:H,Hyjal!K5:K),if({1,1},char(999))); 
ifna(filter(Hyjal!M5:N,Hyjal!O5:O),if({1,1},char(999))); 
ifna(filter(Hyjal!M5:N,Hyjal!P5:P),if({1,1},char(999))); 
ifna(filter(Hyjal!S5:T,Hyjal!U5:U),if({1,1},char(999))); 
ifna(filter(Hyjal!S5:T,Hyjal!V5:V),if({1,1},char(999))); 
ifna(filter(Hyjal!S5:T,Hyjal!W5:W),if({1,1},char(999))); 
ifna(filter(Hyjal!M5:N,Hyjal!Q5:Q),if({1,1},char(999)))}, 
countif(Hyjal!C5:W37,true),,2,1)

对于 sheet 我使用的 BT

ifna(filter(BT!A5:B,BT!C5:C),if({1,1},char(999)));
ifna(filter(BT!A5:B,BT!D5:D),if({1,1},char(999)));
ifna(filter(BT!A5:B,BT!E5:E),if({1,1},char(999))); 
ifna(filter(BT!G5:H,BT!I5:I),if({1,1},char(999))); 
ifna(filter(BT!G5:H,BT!J5:J),if({1,1},char(999))); 
ifna(filter(BT!G5:H,BT!K5:K),if({1,1},char(999))); 
ifna(filter(BT!M5:N,BT!O5:O),if({1,1},char(999))); 
ifna(filter(BT!M5:N,BT!P5:P),if({1,1},char(999))); 
ifna(filter(BT!M5:N,BT!Q5:Q),if({1,1},char(999)))}, 
countif(BT!C5:Q73,true),,2,1)

所以,我尝试将这 2 个函数与 countifs 组合,在公式中将列标准范围更改为 C:W,但它只显示来自 sheet Hyjal 的项目一次来自Sheet BT都查过了。不显示来自 BT 本身的项目。

https://docs.google.com/spreadsheets/d/1hsCZMn1rif2eWpjShWBCH9kCLbSBEA66ZWjDwjhbyGE/edit?usp=sharing

公式在B3的BT+海加尔Sheet

尝试:

=SORT(IFNA(FILTER(
 {Hyjal!A:B; Hyjal!A:B; Hyjal!A:B;
  Hyjal!G:H; Hyjal!G:H; Hyjal!G:H;
  Hyjal!M:N; Hyjal!M:N; Hyjal!M:N;
  Hyjal!S:T; Hyjal!S:T; Hyjal!S:T;
  BT!A:B; BT!A:B; BT!A:B;
  BT!G:H; BT!G:H; BT!G:H;
  BT!M:N; BT!M:N; BT!M:N}, 
 {Hyjal!C:C; Hyjal!D:D; Hyjal!E:E;
  Hyjal!I:I; Hyjal!J:J; Hyjal!K:K;
  Hyjal!O:O; Hyjal!P:P; Hyjal!Q:Q;
  Hyjal!U:U; Hyjal!V:V; Hyjal!W:W;
  BT!C:C; BT!D:D; BT!E:E;
  BT!I:I; BT!J:J; BT!K:K;
  BT!O:O; BT!P:P; BT!Q:Q}=TRUE)), 2, 1)