【发布时间】:2019-06-30 23:41:06
【问题描述】:
我有一个正在改进的团队排行榜。以下是我试图简化的步骤:
1。使用 ImportHTML 函数导入表格
2。使用 Query 功能选择所需的列
3。使用 Filter 函数过滤列中的信息以仅包含与指定预先存在的列表中的名称匹配的名称。
4。 按分数对数据进行排序。
这是我的示例工作簿的链接:https://docs.google.com/spreadsheets/d/1F0w-7bW8Wbh-eJubyBubeMM_yMzzcSZw28R0OJ-l8q8/edit#gid=1646904068
您可以从“IS 热身”表中看到之前的完成方式。在精简其他工作表之前,我正在尝试在“IS-Individual”中精简它。 “姓名”表包含我要为其提取结果的团队成员。
=Sort(
Filter(
QUERY(
IMPORTHTML("https://ct.thecmp.org/app/v1/index.php?do=match&task=getMatchResultsDetail&MatchId=18095&EventId=7&AwardId=1","TABLE",1),
"SELECT Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13" & match(Names!A:A,COL1),
Match(Names!A:A,0)),2,True))
我也试过了:
=Sort(Filter(QUERY(IMPORTHTML("https://ct.thecmp.org/app/v1/index.php?do=match&task=getMatchResultsDetail&MatchId=18095&EventId=7&AwardId=1","TABLE",1),"SELECT Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13"),Match(QUERY(IMPORTHTML("https://ct.thecmp.org/app/v1/index.php?do=match&task=getMatchResultsDetail&MatchId=18095&EventId=7&AwardId=1","TABLE",1),"SELECT Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13"),Names!A:A,0)),2,True)
【问题讨论】:
标签: filter google-sheets google-sheets-formula google-sheets-query google-query-language