如何在过滤功能中使用 2 张范围

How to use ranges from 2 sheets within Filter function

@Player0 帮助我解决了我最初关于设置 ArrayFormula 的问题。 我现在需要向 Filter 函数添加额外的范围。我认为使用 Concat 可以解决问题,但它只是重复值而没有给我所需的输出。

原公式:

=ARRAYFORMULA(REGEXREPLACE(SUBSTITUTE(REGEXREPLACE(TRIM(QUERY(IF(
            FILTER('OFF FIGURE'!D11:Z184, MOD(COLUMN('OFF FIGURE'!D11:Z184) , 5)=0)=C11, 
            FILTER('OFF FIGURE'!E7:Z184, MOD(COLUMN('OFF FIGURE'!E7:Z184)+1, 5)=1), ),,9^9)), 
            "(?i) "," " ), "  ", ", "), "^$", "OPEN"))

所需公式:

=ARRAYFORMULA(CONCAT(REGEXREPLACE(SUBSTITUTE(REGEXREPLACE(TRIM(QUERY(IF(
            FILTER('OFF FIGURE'!D11:Z182, MOD(COLUMN('OFF FIGURE'!D11:Z182) , 5)=0)=C7, 
            FILTER('OFF FIGURE'!D7:Z178, MOD(COLUMN('OFF FIGURE'!D7:Z178)+1, 5)=1), ),,9^9)), 
            "(?i) "," " ), "  ", ", "), "^$", "OPEN"),
 ARRAYFORMULA(REGEXREPLACE(SUBSTITUTE(REGEXREPLACE(TRIM(QUERY(IF(
            FILTER(FASHION!D12:Z183, MOD(COLUMN(FASHION!D12:Z183) , 5)=0)=C7, 
            FILTER(FASHION!E7:Z178, MOD(COLUMN(FASHION!E7:Z178)+1, 5)=1), ),,9^9)), 
            "(?i) "," " ), "  ", ", "), "^$", "OPEN"))))

期望的结果是从脱模和时装表中获取值。 显然Concat不是我想要的...

编辑

我在这个电子表格中添加了公式,得到的结果与我尝试使用 Concat 函数时得到的结果几乎相同。

Link 测试电子表格: https://docs.google.com/spreadsheets/d/1d0SXXQxbd9mPQSjr6olDIzVdL6Gg8FWZtA9oVDQx9bo/edit#gid=1966451697

尝试:

=ARRAYFORMULA(REGEXREPLACE(SUBSTITUTE(REGEXREPLACE(TRIM(QUERY({IF(
 FILTER(FASHION!D12:Z183, MOD(COLUMN(FASHION!D12:Z183) , 5)=0)=C3, 
 FILTER(FASHION!E7:Z178, MOD(COLUMN(FASHION!E7:Z178)+1, 5)=1), ); IF(
 FILTER('Off Figure'!D12:Z183, MOD(COLUMN('Off Figure'!D12:Z183) , 5)=0)=C3, 
 FILTER('Off Figure'!E7:Z178, MOD(COLUMN('Off Figure'!E7:Z178)+1, 5)=1), )},,9^9)), 
 "(?i) "," " ), "  ", ", "), "^$", "OPEN"))

=ARRAYFORMULA(SUBSTITUTE(REGEXREPLACE(TRIM(QUERY({IF(
 FILTER(FASHION!D12:Z183, MOD(COLUMN(FASHION!D12:Z183), 5)=0)=C5, 
 FILTER(FASHION!D6:Z177, MOD(COLUMN(FASHION!D6:Z177)+1, 5)=0), ); IF(
 FILTER('Off Figure'!D12:Z183, MOD(COLUMN('Off Figure'!D12:Z183), 5)=0)=C5, 
 FILTER('Off Figure'!D6:Z177, MOD(COLUMN('Off Figure'!D6:Z177)+1, 5)=0), )},,9^9)), 
 "(?i)bay ", ), " ", ", "))