如果一行中的文本是“Week2”,我将尝试导入列的选择。我的问题是查询只返回标题行。我用的公式是这样的:
=查询(impretrange(“https://docs.google.com/spreadsheets/d/1eu5dj5dogfsg7jeib1umodoamt5r3bzyotwa1rxyh0/edit#gid=0”,“sheet1!a:z”),“select Col5,Col7,Col8 where col6='week 2'”,1)
我这里有一些测试表:
导入信息的原始位置:https://docs.google.com/spreadsheets/d/1eu5dj5dogfsg7jeib1umodoamt5r3bzyyotwa1rxyh0/edit#gid=0
最终目的地(A2中的公式):https://docs.google.com/spreadsheets/d/19ic36izklxgid5zjtzr9hp71jytrt_rehbgxbawbepg/edit#gid=0
您的查询是正常的,但您有错误的列no。
=query(importrange("https://docs.google.com/spreadsheets/d/1Eu5dJ5dOgFsG7jeIB1umoDOamt5r3BzYYoTWA1Rxyh0/edit#gid=0", "Sheet1!A:Z"),"select Col5,Col7,Col8 where Col6='Week 2'",1)
应该是
=query(importrange("https://docs.google.com/spreadsheets/d/1Eu5dJ5dOgFsG7jeIB1umoDOamt5r3BzYYoTWA1Rxyh0/edit#gid=0", "Sheet1!A:Z"),"select Col5,Col7,Col8 where Col5='Week 2'",1)