在 Google 个工作表中查询具有最新时间戳的行

Query rows with most recent time stamp in Google Sheets

我在 Google 工作表中有一些数据包含具有不同日期的重复帐号。我想查询数据并删除重复项,并且只 select 那些具有最新日期的行。

示例数据在这里:

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)")

尝试:

=SORTN(SORT(A1:C, 2, 0), 99^99, 2, 2, 0)