google-sheets - 在 Google 表格中查询具有最新时间戳的行
问题描述
我在 Google 表格中有一些数据,其中包含具有不同日期的重复帐号。我想查询数据并删除重复项,并仅选择日期最近的那些行。
示例数据在这里:
115684 11/21/2019 Blue
115684 11/20/2019 Green
115684 11/19/2019 Yellow
165488 11/17/2019 Red
165488 11/12/2019 Blue
165488 6/19/2019 Green
556689 11/21/2019 Yellow
556690 11/21/2019 Red
556691 6/19/2019 Blue
所以结果应该是这样的:
115684 11/21/2019 Blue
165488 11/17/2019 Red
556689 11/21/2019 Yellow
556690 11/21/2019 Red
556691 6/19/2019 Blue
我试过这个,但没有奏效:
=QUERY(A:C, "SELECT A, B, C WHERE MAX(B)")
解决方案
推荐阅读
- ruby - Cocoapods Traceback 在 41 个 gem(s) (Gem::MissingSpecError) 中找不到 'json' (>= 1.5.1)
- python - 如何按升序显示 Y 上的值,但保存它们的索引。Matplotlib
- java - 在不知道密钥但知道明文将包含的单词之一的情况下解密移位密码的方法-Java
- c - 带哨兵的链表
- javascript - 在 for() 循环中编辑变量的值
- php - wp_nav_menu 如何将整个子菜单包装在 div 中
- bootstrap-4 - Bootstrap 4 导航栏切换按钮是否可以在打开另一个菜单之前关闭先前打开的菜单?
- python - 如何避免 pytest 设备中的状态依赖?
- android - Android Studio 4.1.1“运行”不编译代码
- python - 如何有效地检查列表中的值是否存在于字典列表中