【问题标题】:How to get the last entry containing a certain value in Google Spreadsheet如何在 Google 电子表格中获取包含某个值的最后一个条目
【发布时间】:2015-06-18 12:23:21
【问题描述】:

我有一个链接到 Google 表单的答案电子表格。我希望获得提交答案的最后日期。

假设我的条目如下所示:

数据:

         A               B

  1      Date            String  

  2      2015-05-09      Abb  

  3      2015-05-11      Bcc

  4      2015-05-12      Cdd

  5      2015-05-20      Bcc

  6      2015-06-01      Abb  

我想要的结果是这样的:

         A               B

  1      String          Last date 

  2      Abb             2015-06-01 

  3      Bcc             2015-05-20

  4      Cdd             2015-05-12

理想情况下,我只想使用公式!

【问题讨论】:

    标签: google-apps-script google-sheets google-forms formulas


    【解决方案1】:

    假设您的数据从第 2 行开始,请尝试:

    =ArrayFormula(iferror(vlookup(unique(B2:B), sort({B2:B, A2:A}, 2, 0), {1, 2}, 0 )))
    

    更改范围以适应。如果您需要该公式出现在另一个工作表上,请不要忘记包含工作表名称。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-27
      • 1970-01-01
      • 2012-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多