首页 > 解决方案 > GoogleSheets:如何使用过滤器查询返回与 2 列匹配的最新记录

问题描述

我用一张桌子来管理用品。如果“位置”和“Nb”是唯一的,我想获得一个包含每个数据的最新记录的新表。

链接:https ://docs.google.com/spreadsheets/d/1pAPv3r3ghRpWUAmpQipcd5DIaovoGIAdhE5arrSMM7I/edit?usp=sharing

图片

我希望你能帮帮我!

标签: google-sheetsfiltergoogle-sheets-formulamultiple-conditions

解决方案


尝试:

=QUERY(SORTN(SORT({A2:D\ ROW(A2:A)\ A2:A&B2:B}; 5; 0); 9^9; 2; 6; 1); 
 "select Col1,Col2,Col3,Col4 where Col1 is not null")

在此处输入图像描述


推荐阅读