How do I split single cell contents into multiple columns without seperators?
28,035
There's 2 options:
First, assuming you have Excel 2007 or greater:
- Select the cell you want to parse
- Go to Data->Text To Columns
- Choose Fixed width.
- Add Break lines until it all lines up the way you want.
- Finish
Second, you can do this entirely in code:
Put your target data in cell A1
In Cell B1, add
=MID($A$1,COLUMN()-1,1)
.Fill the formula to the right until you run out of characters.
This formula takes 1 character at a time out of the target cell based on the column number (this formula would need work if you need to parse it to the same column as the target cell)
Does that help? If not, can you tell us more?
Author by
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
I have an excel spreadsheet that has the following:
Cell A1 ABCD 1234
I would like to split this to be
CELL A1: ABCD
CELL B1: A CELL C1: B CELL D1: C CELL E1: D
I tried using the text to column tool but since there is no separators like spaces or commas I cant seem to split it up properly.
Thanks for the help.
-
fixer1234 almost 9 yearsHow would transposing split up a string?