How to import data from one sheet to “only one cell” in another sheet

烈酒焚心 提交于 2019-12-11 06:55:28

问题


Using google sheets, I am able to transfer data from one sheet to another sheet using

=IMPORTRANGE

but IMPORTRANGE creates more cells depending on how many cells you are copying over. I need to copy all data from sheet1 into only one cell of sheet 2. Is there a way to do that?

Thanks!


回答1:


After you authorize the access to the external spreadsheet, try

=JOIN(CHAR(10),QUERY(TRANSPOSE(IMPORTRANGE(spreadsheet_key,reference_string)),,2E6))

If the source data is

+---+----+----+
|   | A  | B  |
+---+----+----+
| 1 | A1 | B1 |
| 2 | A2 | B2 |
+---+----+----+

the result will be

+---+---------+
|   |   A     |
+---+---------+
| 1 | A1 B1   |
|   | A2 B2   |
+---+---------+


来源:https://stackoverflow.com/questions/40227146/how-to-import-data-from-one-sheet-to-only-one-cell-in-another-sheet

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