Oct 27 2021 11:45 AM
I am trying to split a cell with three line breaks into 4 columns. When using the text to columns wizard and selecting delimited, all the text in the cell shows up in the preview. When I hit next, only the first line shows up. Nothing after the first line break appears.
Oct 27 2021 02:29 PM
In Step 2 of the wizard, tick the Other check box, then click in the box next to it and press Ctrl+J. This is the code for a line break.
Oct 28 2021 04:53 AM
I have done this however, the wizard is not recognizing any of my text after the first line break. So when I try to do ctrl+j, nothing happens.
Oct 28 2021 05:55 AM
Strange...
Instead of Ctrl+J, you can also try clicking in the box next to Other and pressing Alt+010 using the numeric keypad.
Nov 01 2021 07:40 AM
Nov 01 2021 08:01 AM
Nov 01 2021 08:39 AM
Nov 01 2021 09:01 AM
Here is a shorter macro. Select the cells with multiple lines (in a column) before running the macro.
Sub SplitLines()
Selection.TextToColumns DataType:=xlDelimited, Other:=True, OtherChar:=vbLf
End Sub
Nov 01 2021 12:58 PM
Solution@Hans Vogelaar So I found a way to get it to work. All I did was edit the information that appears in the formula bar- like delete a word and then retype it-and somehow the text to column options works just fine.
Feb 27 2022 03:33 AM
Hi all. I have the exact same problem where the text to columns on multi line cells only works if I edit something in the cell, even if I just double click on the cell to enter edit mode is enough. The problem is that I have thousands of records so I can't double click on all. I tried find/replace to edit something but to no avail. Any idea pls? Thanks a lot.
Nov 01 2021 12:58 PM
Solution@Hans Vogelaar So I found a way to get it to work. All I did was edit the information that appears in the formula bar- like delete a word and then retype it-and somehow the text to column options works just fine.