jas*_*son 22 arrays google-sheets google-sheets-formula
我有一个阵列
1
2
3
Run Code Online (Sandbox Code Playgroud)
另一个阵列
4
5
6
Run Code Online (Sandbox Code Playgroud)
如何使用一个函数加入2个数组?
1
2
3
4
5
6
Run Code Online (Sandbox Code Playgroud)
Luc*_*ein 61
假设你的数组是:
A1:A3 = {1;2;3}和B1:B3 ={4;5;6}
写点某处: ={A1:A3;B1:B3}
分号;用于分隔行,逗号,用于列.
以下是文档:在Google表格中使用数组
小智 7
TRANSPOSE() //takes matrix as argument and returns transposed matrix
SPLIT() //breaks apart a string based on a delimiter character (char(13) here)
ARRAYFORMULA() //applies the formula within to array vs cell
CONCATENATE() //joins each cell in each range with a char(13), then the next cell...then the next matrix of cells (to which the first process also happens)
//note char(13) is a carriage return, i will call CR for ease
Run Code Online (Sandbox Code Playgroud)
所以如果你有矩阵A:1,2,3和矩阵B:4,5,6
步骤看起来像这样:
TRANSPOSE(SPLIT(ARRAYFORMULA(CONCATENATE("1CR2CR3CR" ; "4CR5CR6CR")), CR))
TRANSPOSE(SPLIT("1CR2CR3CR4CR5CR6CR", "CR"))
TRANSPOSE({"1","2","3","4","5","6"})
Run Code Online (Sandbox Code Playgroud)
最后:
1
2
3
4
5
6
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
28644 次 |
| 最近记录: |