Ctrl + J in text to column

scottwiebe

New Member
Joined
Nov 9, 2018
Messages
3
I already read the other thread with the same name, but this still isn't working for me.

I have a column of data where each cell has 2 lines. I want to split these lines into the next column using the the text-to-columns feature. When I set a delimiter of other and enter ctrl+J, the preview doesn't change at all and when I follow through with it, the data has not been split up.

I thought maybe it was my formatting so to test, I made a new column and put the numbers 1, 2, 3, 4 all in separate lines using alt+enter. When I went to perform the text-to-columns it worked exactly how it should. I compared my previous data to this test data and couldn't find any difference in formatting. I even copied my test cell and pasted formatting on the original data, but to no avail.

What am I missing?
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,884
Office Version
  1. 2010
Platform
  1. Windows
Assuming one of your cells that does not work is A1 (change as needed), execute this code in the VBA Immediate Window...

? InStr(Range("A1").Value, vbLf)

and tell me what prints out.
 

scottwiebe

New Member
Joined
Nov 9, 2018
Messages
3
Assuming one of your cells that does not work is A1 (change as needed), execute this code in the VBA Immediate Window...

? InStr(Range("A1").Value, vbLf)

and tell me what prints out.
I'm sorry, when it comes to VBA, I am a lost puppy.
In the attached image is what I've done and I'm not sure what else exactly you are asking me to do.
 

Attachments

  • 1605141199894.png
    1605141199894.png
    85.3 KB · Views: 9

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
13,992
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
Press Ctrl+G and the Immediate window should appear, copy and paste what Rick posted in the Immediate window and press Enter. You'll get the result underneath.

1605142429898.png
 

scottwiebe

New Member
Joined
Nov 9, 2018
Messages
3
Assuming one of your cells that does not work is A1 (change as needed), execute this code in the VBA Immediate Window...

? InStr(Range("A1").Value, vbLf)

and tell me what prints out.
Hi Rick, sorry for taking so long to get back to you. I just entered the code into the immediate window and this is what I get.

Excel Problem.JPG
 

Watch MrExcel Video

Forum statistics

Threads
1,127,832
Messages
5,627,152
Members
416,224
Latest member
RichardHell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top