如何根据EXCEL中的条件将一列拆分成两列 [英] how to split one column into two columns base on conditions in EXCEL

查看:642
本文介绍了如何根据EXCEL中的条件将一列拆分成两列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Excel很新请帮助

  Column1 
A,1
B,2
C,1
D,2
E,1

输出:

  Column2 Column3 
A,1 B,2
C,1 D,2
E,1

这样做的公式是什么?谢谢!

解决方案

假设您的数据( A,1 等。)跨越单元格A1:A50,然后:



单元格B1: = INDEX($ A $ 1:$ A $ 50,ROW()*单元格C1: = INDEX($ A $ 1:$ A $ 50,ROW(...)$ / code $ )* 2,1)



然后,您可以根据需要将公式复制到下面的单元格中。
这些公式重新分配您的单元格内容之间的两列,不管文本本身。


I am very new to Excel. Please help

Column1
A,1
B,2
C,1
D,2
E,1

output:

Column2  Column3
A,1       B,2
C,1       D,2
E,1

what is the formula to do this? Thanks!

解决方案

Assuming your data ("A,1, etc.") spans cells A1:A50, then:

Cell B1: =INDEX($A$1:$A$50,ROW()*2-1,1)

Cell C1: =INDEX($A$1:$A$50,ROW()*2,1)

Then you can copy the formulas to cells below, as far as needed. These formulas "redistribute" your cells contents between the two columns, regardless of the text itself.

这篇关于如何根据EXCEL中的条件将一列拆分成两列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆