Using query, Import Range and named range to either label the named range or ignore the header

假装没事ソ 提交于 2021-02-10 19:26:29

问题


Context

So I am trying to put together some data to run a machine learning model. I need all the data in one google sheet. But I am importing the data from a different spreadsheet saved elsewhere.

This is my current formula =QUERY(IMPORTRANGE("link", "AvevaReturns")) Screen reader support enabled.

It returns the spreadsheet but with the column label which is located in row 3 (two rows above it are blank).

I have tried this, this and this to no avail.

Problem

I don't want the header included. I tried relabelling it using the label function in query according to the required order. If this does not work, how do I retrieve the data without the label?


回答1:


try:

=QUERY(QUERY(IMPORTRANGE("ID", "NamedRange"), "offset 1", 0), 
 "select Col1 where Col1 contains '"&B2&"'")


来源:https://stackoverflow.com/questions/65729522/using-query-import-range-and-named-range-to-either-label-the-named-range-or-ign

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