Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Google 表格,我想获取数据并创建一个新单元格。
例子:
我有 300 行和 4 列,例如:
1|3|2|4 5|7|6|8 9|11|10|12 ... 297|299|298|300
结果是我需要的一个单元格:
1,3,2,4,5,7,6,8,9,11,10,12...297,299,298,300
=SUBSTITUTE(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(A2:D),,999^99)),,999^99)), " ", ", ")
但如果你只想要 CSV 中 1 - 300 的数字,那么:
=ARRAYFORMULA(JOIN(", ", ROW(A1:A300)))
你可以使用Textjoin:
Textjoin
=TEXTJOIN(",",1,A2:D)