简体   繁体   English

在导入查询中将两个单元格连接在一起

[英]Concatenate two cells together on an import query

I am hoping to concatenate on a query我希望连接查询

The following code works:以下代码有效:

=QUERY('Sheet1'!A2:Y20, "SELECT A, D, I where C < 3",1)

and I want to concatenate A and D ... making the code something like this:我想连接 A 和 D ...使代码如下所示:

=QUERY('Sheet1'!A2:Y20, "SELECT A AND D, I where C < 3",1)

So A and D are in the same cell, and I is in the cell next to it.所以A和D在同一个单元格中,而我在它旁边的单元格中。

try:尝试:

=ARRAYFORMULA(QUERY({Sheet1!A2:A20&Sheet1!D2:D20, Sheet1!I2:I20, Sheet1!C2:C20}, 
 "select Col1,Col2 where Col3 < 3", 1))

看看这是否有效

=filter({Sheet1!A2:A20&Sheet1!D2:D20, Sheet1!I2:I20}, Sheet1!C2:C20<3)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM