Excel:将两列合并为具有交替值的一列 [英] Excel: Merge two columns into one column with alternating values
本文介绍了Excel:将两列合并为具有交替值的一列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将两列数据合并为一列,如下所示:
how can I merge two columns of data into one like the following:
Col1 Col2 Col3
========================
A 1 A
B 2 1
C 3 B
2
C
3
推荐答案
根据我的示例,您可以在列D
中使用以下公式.请记住要根据您的数据增加$A$1:$B$6
范围.
You can use the following formula in column D
as per my example. Keep in mind to increase the $A$1:$B$6
range according to your data.
=INDEX($A$1:$B$6,INT((ROWS(D$2:D2)-1)/2)+1,MOD(ROWS(D$2:D2)-1,2)+1)
结果:
这篇关于Excel:将两列合并为具有交替值的一列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文