Is there a way to make this type of query work?

大兔子大兔子 提交于 2019-12-13 06:52:16

问题


=query(G2:I80,"select G,H,I where H=max(H) group by I",-1)

Columnn G is names Column H is vote count and Column I is Their respective teams.

I want to view the top voted names of each team and sometimes the some top voted names are tied so I wanna view both names using the query above but it dont seem to work.


回答1:


I am not entirely sure what you want (a formula that does not work is not a good guide) but perhaps:

=sort(filter(query(G2:I80,"select G, H, I ",-1),H2:H80=Max(H:H)),3,TRUE)


来源:https://stackoverflow.com/questions/28553854/is-there-a-way-to-make-this-type-of-query-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!