简体   繁体   English

(Excel) 如何将一列配对数据重新编译成两列

[英](Excel) How to Recompile One Column of Paired Data into Two Columns

I want data stored in one column with pairs to be separated into two columns like this automatically.我希望将数据存储在一列中,并自动分成两列。 See that each pair was vertically aligned but is now horizontally aligned.看到每一对是垂直对齐的,但现在是水平对齐的。 Between two pairs, there is a space cell to separate.在两对之间,有一个空间单元可以分开。

在此处输入图像描述

However, if I simply do two cells manually and then drag down, it gets really messy.但是,如果我只是手动做两个单元格然后向下拖动,它会变得非常混乱。 In parentheses, I have put which cell the formula actually copies.在括号中,我列出了公式实际复制的单元格。 How can I fix it?我该如何解决? Thank you in advance.先感谢您。 在此处输入图像描述

Let's say your data is in column A.假设您的数据在 A 列中。

Enter the following formula into Cell C1:在单元格 C1 中输入以下公式:

=INDEX($A:$A,3*(ROW()-1)+COLUMN()-COLUMN($B$1),1)

Fill this formula to the right one column, and then fill both columns down until the data completely appears.将此公式填充到右侧一列,然后将两列向下填充,直到数据完全出现。 在此处输入图像描述

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

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