【问题标题】:Google sheets query unique values by latest date and ignore othersGoogle 表格按最新日期查询唯一值并忽略其他值
【发布时间】:2020-07-08 10:31:42
【问题描述】:

正如标题所暗示的,我正在尝试从非独特标识符(日期)中查询唯一行值。到目前为止,我使用的是以下内容:

=unique(filter(A:C,match(A:A&C:C,query(query(A:C,"select A,max(C) where A<>'' group by A label max(C) ''"),"select Col1")&query(query(A:C,"select A,max(C) where A<>'' group by A label max(C) ''"),"select Col2"),0)))

但是返回的结果并不能具体工作,因为日期条目可能是不明确的,例如:

我需要 (1) 如果返回的行有数字结果 -> 忽略未公开的 (2) 对于所有返回的具有相同日期的行只返回最大值(例如,如果返回未公开,10 和 20,则结果应该只显示 20。

【问题讨论】:

  • 分享您的工作表副本

标签: arrays sorting google-sheets google-sheets-formula google-sheets-query


【解决方案1】:

尝试:

=SORTN(SORT(A:C, 3, 0), 99^99, 2, 1, 1)

【讨论】:

    猜你喜欢
    • 2019-03-13
    • 2020-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-03
    • 2020-11-13
    • 1970-01-01
    • 2016-09-05
    相关资源
    最近更新 更多