我正在使用IMPORTRANGE,其中一个列中有重复的。我只想根据另一列显示具有最低值的重复项中的行。
我当前的查询:
=QUERY(IMPORTRANGE("google.com/spreadsheets/d/x/edit","sheet name"),"Select Col1,Col4,Col7,Col5,Col15 where Col5 contains 'some text' and Col15 contains 'some other text' and Col4 is not null order by Col4 asc")
根据前面的说明,Col4是A,Col7是B。
如果您能告诉我如何编辑现有的查询,我将非常感激。
发布于 2022-08-21 01:02:32
尝试:
=SORTN(SORT(QUERY(
IMPORTRANGE("google.com/spreadsheets/d/x/edit", "sheet name"),
"select Col1,Col4,Col7,Col5,Col15
where Col5 contains 'some text'
and Col15 contains 'some other text'
and Col4 is not null
order by Col4 asc", ), 2, 1), 9^9, 2, 1, 1)
最新情况:
=SORTN(SORT(QUERY(IMPORTRANGE("id","(2) NL_ranking_file.csv!A2:O250"),
"select Col1,Col4,Col7,Col5,Col15
where Col5 contains ''
and Col15 contains 'Places'
and Col4 is not null
order by Col4 asc", ), 3, 1), 9^9, 2, 2, 1)
https://stackoverflow.com/questions/73430894
复制相似问题