获取根据开始/结束日期提示在行字符串中搜索日期的过滤表?

问题描述 投票:0回答:1

我在“评论表”表中有一个过滤表。我目前通过这个公式获取数据:

=IFNA(UNIQUE(filter({'Master Line List'!C:C,'Master Line List'!F:F,'Master Line List'!I:I,'Master Line List'!G:G,'Master Line List'!A:A},'Master Line List'!I:I=C1,'Master Line List'!G:G=D1)),"")

但现在我希望它根据 g2 和 h2 开始/结束日期提示来限制匹配。如果他们找到匹配项并且注释列 (B) 中的文本字符串不包含介于 g2:h2 之间的日期,则不返回匹配项。

我在更简单的测试表中得到了一个公式的帮助,我尝试将其合并,但它不起作用:

=filter({'Master Line List'!C:C,'Master Line List'!F:F,'Master Line List'!I:I,'Master Line List'!G:G,'Master Line List'!A:A},'Master Line List'!I:I=C1,'Master Line List'!G:G=D1,byrow({'Master Line List'!C:C,'Master Line List'!F:F,'Master Line List'!I:I,'Master Line List'!G:G,'Master Line List'!A:A,lambda(Σ,or(bycol(split(Σ,char(10)),lambda(Λ,isbetween(--left(Λ,find("``",Λ)),G2,H2)))))))

这是我的表格的链接

google-sheets
1个回答
0
投票

您可以尝试:

=filter(choosecols('Master Line List'!A:I,3,6,9,7,1),'Master Line List'!I:I=C1,'Master Line List'!G:G=D1,
        byrow('Master Line List'!F:F,lambda(Σ,or(bycol(split(Σ,char(10)),lambda(Λ,isbetween(--left(Λ,find(" ",Λ)),G2,H2)))))))

© www.soinside.com 2019 - 2024. All rights reserved.