Forum Discussion
KRV 182
Apr 19, 2018Copper Contributor
4 rows of data in 1 cell . Split into 4 cells
Wanted to know how to split data in a cell into multiple cells. I have 4 rows of data in 1 cell and want to split the data into 4 cells. I know what text to column does but this doesn't apply. Also I...
- Apr 19, 2018
That is approximately the same
=TRIM(MID(SUBSTITUTE($B$4,CHAR(10),REPT(" ",LEN($B$4))),(ROW()-ROW($A$8))*LEN($B$4)+1,LEN($B$4)))
in B8 on screenshot and drag down
and attached
SergeiBaklan
Apr 19, 2018Diamond Contributor
Please check this conversation https://techcommunity.microsoft.com/t5/Formulas-and-Functions/Split-data-from-one-column-without-using-text-to-column/m-p/183941#M4814
KRV 182
Apr 19, 2018Copper Contributor
Thank you for this but want to split this data into 4 cells VERTICALLY and not horizontally. Pls see attach for example
- SergeiBaklanApr 19, 2018Diamond Contributor
That is approximately the same
=TRIM(MID(SUBSTITUTE($B$4,CHAR(10),REPT(" ",LEN($B$4))),(ROW()-ROW($A$8))*LEN($B$4)+1,LEN($B$4)))
in B8 on screenshot and drag down
and attached
- KRV 182Apr 19, 2018Copper Contributor
THIS IS 100% WHAT I WAS LOOKING FOR!!!!!!
Thank you
- Brandon LongApr 19, 2018Brass ContributorAfter you've split the text into columns, you can copy and the "Special Paste > Transform" to pivot the data to individual rows.
- KRV 182Apr 19, 2018Copper Contributor
My text is stacked in one on top of the other in a single cell like this (see below). All this text is in 1 cell and need to know how to separate this text into 4 cells (see attch) using a formula
ABC 0004
ABC 0020
ABC 0040
ABC 0048