how to split one column into two columns base on conditions in EXCEL

别说谁变了你拦得住时间么 提交于 2019-11-28 02:27:16

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.

You can use an IF condition like this as well

    =IF(RIGHT(A2,1)="1",A2,"") in column 2
=IF(RIGHT(A2,1)="2",A2,"") in column 3

However cells cannot be deleted just with formula

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!