有没有一种方法可以在Google表格查询的输出中插入空白列? [英] Is there a way to insert blank columns in output with google sheets query?

查看:143
本文介绍了有没有一种方法可以在Google表格查询的输出中插入空白列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑从sheet2运行查询

Consider the query run from sheet2

=query(Sheet!A7:A, "Select A,B,C where A='Order'")

但是我想将其放在Sheet2的A,E,F列中.

but I want to put this in columns A,E,F in Sheet2.

我找到了解决方法

=query(Sheet!A7:A, "Select A,X,Y,Z,B,C where A='Order'")

其中XYZ是范围末尾的空白列.这似乎很笨拙.

Where XYZ are blank columns from the end of the range. This seems clunky.

到目前为止,在Google文档和Google产品论坛中使用查询语法进行的搜索均无济于事.

So far searches in both the query syntax on Google docs, and google product forums have been unproductive.

推荐答案

将空列作为文字放入查询中-虽然不能真正为空,但必须包含这样的空格

Put the empty columns as literals in the query - cannot really be empty though, must contain a space like this

=query(Sheet!A7:C, "Select A,' ',' ',' ',B,C where A='Order'")

这篇关于有没有一种方法可以在Google表格查询的输出中插入空白列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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