Google 工作表查询导入范围,其中 Col = Column(NamedRange)
Google Sheets Query ImportRange where Col = Column(NamedRange)
=QUERY( IMPORTRANGE( "https://URL", "Name Of Sheet!1:999" ), "SELECT * WHERE Col" & COLUMN(namedRange) & "'is not null",0 )
这吐出错误:
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <ID> "Col1 "" at line 1, column 16. Was expecting one of: "(" ... "(" ...
我知道部分解决方案是使用“&”符号连接某些引号块。最大的挑战是把正确的引号放在正确的位置。
假设命名范围称为 TEST
"select Col" & COLUMN(TEST) & " where Col" & COLUMN(TEST) & " is not null "
或
"select * where Col" & COLUMN(TEST) & " is not null "
你省略了 WHERE 语法
尝试:
=QUERY({IMPORTRANGE("id", "Name Of Sheet!1:999")},
"where Col"&COLUMN(namedRange)&" is not null", 0)
如果您想要所有列 ,则不需要 select *
https://URL
你也不需要,只要把 sheet
的身份证号放在那里就行了
=QUERY( IMPORTRANGE( "https://URL", "Name Of Sheet!1:999" ), "SELECT * WHERE Col" & COLUMN(namedRange) & "'is not null",0 )
这吐出错误:
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <ID> "Col1 "" at line 1, column 16. Was expecting one of: "(" ... "(" ...
我知道部分解决方案是使用“&”符号连接某些引号块。最大的挑战是把正确的引号放在正确的位置。
假设命名范围称为 TEST
"select Col" & COLUMN(TEST) & " where Col" & COLUMN(TEST) & " is not null "
或
"select * where Col" & COLUMN(TEST) & " is not null "
你省略了 WHERE 语法
尝试:
=QUERY({IMPORTRANGE("id", "Name Of Sheet!1:999")},
"where Col"&COLUMN(namedRange)&" is not null", 0)
如果您想要所有列 ,则不需要 select *
https://URL
你也不需要,只要把 sheet