【问题标题】:Is it possible to transpose a column of text values into a single row without duplicates based on an if statement?是否可以基于 if 语句将一列文本值转换为没有重复的单行?
【发布时间】:2020-08-15 10:09:05
【问题描述】:

例如我有以下工作表和公式,但我只想在数据包含 A2 中指定的特定月份时转置数据。

【问题讨论】:

  • 分享您的工作表副本

标签: google-sheets filter unique google-sheets-formula transpose


【解决方案1】:

尝试:

=TRANSPOSE(UNIQUE(FILTER(A5:A; B5:B=A2)))

【讨论】:

  • 简单得多:)
【解决方案2】:

您可以为此使用查询。

=TRANSPOSE(QUERY(A5:C, "select A where month(B)+2="&MONTH(A2)&""))

我们添加 +1 的原因是因为查询中的月份从 0 开始

【讨论】:

    猜你喜欢
    • 2023-03-07
    • 2014-06-26
    • 1970-01-01
    • 2014-12-26
    • 1970-01-01
    • 2021-01-05
    • 1970-01-01
    • 1970-01-01
    • 2016-10-22
    相关资源
    最近更新 更多