简体   繁体   English

从不同的列导入数据并使用谷歌表格粘贴到行中

[英]Import data from different columns and paste in rows using google sheet

I've this data, but my problem is to concatenate the information into lines, cause works on the way我有这些数据,但我的问题是将信息连接成行,因为工作正在进行中

First will the the COl A til COl D to filter where we have mismatches between A and D, but also take where on Col D has text.首先将 COl A 直到 COl D 来过滤我们在 A 和 D 之间存在不匹配的地方,但也会在 Col D 上有文本的地方进行筛选。 But I already build this part.但我已经构建了这部分。

And do the same with the Col E til Col H.对 Col E 直到 Col H 执行相同操作。

     A       B  C   D            E      F   G   H
2020-04-30  BA  BU  fsdf    2020-04-30  G   X   
2020-04-30  BU  BA          2020-04-30  L   Z   
2020-04-29  BA  BU          2020-04-29  H   W   
2020-04-29  BU  BA          2020-04-29  G   Q   dfdf
2020-04-28  BA  BU  sdfsdfs 2020-04-28  L   W   dfdf
2020-04-28  AA  BA          2020-04-28  H   AA  
2020-04-25  AA  BA          2020-04-25  G   X   fd
2020-04-22  BU  BA  sdfsdfs 2020-04-22  L   Z   
2020-04-19  AA  BU          2020-04-19  H   W   d
2020-04-19  AA  BA          2020-04-19  G   Q   
2020-03-27  BA  AA  sdfsdf  2020-03-27  L   W   
2020-03-27  BA  AA          2020-03-27  H   AA  dfdf
2020-03-26  BU  AA          2020-03-26  G   X   
2020-03-18  BA  AA          2020-03-18  L   Z   
2020-03-18  AA  BU          2020-03-18  H   W   

My problem is cause I want to the same from Col E til Col H but pasting below the previous information.我的问题是因为我想从 Col E 到 Col H 相同,但粘贴在以前的信息下方。 I'd like to have on this way:我想这样:

2020-04-30  BA  BU  fsdf
2020-04-28  BA  BU  sdfsdfs
2020-04-22  BU  BA  sdfsdfs
2020-03-27  BA  AA  sdfsdf
2020-04-29  G   Q   dfdf
2020-04-28  L   W   dfdf
2020-04-25  G   X   fd
2020-04-19  H   W   d
2020-03-27  H   AA  dfdf

I alreaby built the script in two ways but I cound't do on a way that I can concatenate or do something like that.我已经以两种方式构建了脚本,但我无法以我可以连接或做类似事情的方式做。

=filter(importrange("xx","Database:$A,$D"),importrange("xx":"Database,$B:$B")<>importrange("xx","Database,$C:$C"),istext(importrange("xx","Database!$D:$D")))

query(importrange("xx","Database:$A,$AA50"),"SELECT Col1,Col4 WHERE (Col2<>Col3 and Col4 is not null)")

try:尝试:

=QUERY({IMPORTRANGE("xx", "Database!A:D"); 
        IMPORTRANGE("xx", "Database!E:H")},
 "select Col1,Col4 
  where Col2<>Col3 
    and Col4 is not null", 0)

暂无
暂无

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

相关问题 使用 ID 从另一个工作表导入数据,但只有一些列 - Import data from another sheet using ID but only some columns 如何使用 Google Apps 脚本从 JSON 创建数组并将值导入到 Google 表格中的多行 - How to Create an Array From JSON and Import the Values to Multiple Rows in a Google Sheet Using Google Apps Scripts 在工作表 1 中使用 2 列中的 FROM 和 TO 日期搜索特定日期,然后将工作表 1 中同一行的列中的数据粘贴到工作表 2 中 - Search for a particular date in sheet 1 with FROM and TO dates in 2 columns and then paste data from a column in same row in sheet 1 into sheet 2 多列的数组并粘贴到不同的工作表中,在最后一行获取#ref? - Array for multiple columns and paste into different sheet, getting #ref at the last row? 如何使用Google表格脚本将此复杂的字符串分为3列和50行 - How to split this complex string into 3 columns and 50 rows using Google sheet script 使用 Google App Script 将列从 Sheet1 复制到 Sheet2 并远程复制 - Copy columns from Sheet1 to Sheet2 & remote duplicates using Google App Script 如何查询不同的列并堆叠到谷歌表格中的新表中 - how to query different columns and stack into new table in google sheet 在 Google Script 中创建一个 function 将 JSON 数据调用到数组中并将其粘贴到 Google Sheet 中 - in Google Script create a function to call JSON data into an array and paste it in Google Sheet 在谷歌工作表中如何计算另一张工作表中的数据 - In google sheet how to calcul data from another sheet 使用HTML服务中的数据填充Google表格 - Populate Google Sheet with data from HTML service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM