使用查询,导入范围和命名范围来标记命名范围或忽略标题 [英] Using query, Import Range and named range to either label the named range or ignore the header

查看:60
本文介绍了使用查询,导入范围和命名范围来标记命名范围或忽略标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文

因此,我正在尝试汇总一些数据以运行机器学习模型.我需要所有数据在一个Google工作表中.但是我是从保存在其他地方的另一个电子表格中导入数据的.

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.

这是我目前的公式 = QUERY(IMPORTRANGE("link","AvevaReturns"))屏幕阅读器支持已启用.

它返回电子表格,但列标签位于第3行(其上方两行为空白).

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

我尝试了无济于事.

问题

我不希望包含标题.我尝试根据要求的顺序在查询中使用标签功能对其重新标注.如果这样做不起作用,该如何在没有标签的情况下检索数据?

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?

推荐答案

尝试:

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

这篇关于使用查询,导入范围和命名范围来标记命名范围或忽略标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆