简体   繁体   English

如何在 Excel 中将列转置为矩阵?

[英]How do I transpose a column to a matrix in Excel?

I work in Excel on a MacBook and I don't know how to transpose ,for example, a column of 9 elements to a 3x3 matrix.我在 MacBook 上使用 Excel,但我不知道如何将 9 个元素的列转置为 3x3 矩阵。 I tried with TRANSPOSE function but the results are not correct because the first column of the matrix will be the first element repeated 3 times and so on.我尝试使用 TRANSPOSE 函数,但结果不正确,因为矩阵的第一列将是重复 3 次的第一个元素,依此类推。

With data in column A , pick some cell and enter:使用A列中数据,选择一些单元格并输入:

=INDEX($A:$A,COLUMNS($A:A)+3*(ROWS($1:1)-1),0)

and then copy both across and down.然后上下复制。

在此处输入图片说明

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

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