Text to Columns Seperated by Enter

Pauldn24

New Member
Joined
May 24, 2009
Messages
5
Hello,

I'm trying to figure out how to move the data I have by using text to columns.

Data is as follows:
Blank Space
Data

I tried Alt J and Alt 0010 in the "other" box and all the data disappears. Any suggestions? Thanks in advance.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi

Should work if you composed the text in excel with the alt-enter.

Did you import the data?

For ex.: sometimes, if you import data, in some text sources the delimiter for the line is carriage return-linefeed and not just linefeed like in the excel cell.

Please check.
 
Upvote 0
Hi

Should work if you composed the text in excel with the alt-enter.

Did you import the data?

For ex.: sometimes, if you import data, in some text sources the delimiter for the line is carriage return-linefeed and not just linefeed like in the excel cell.

Please check.

I had a software pull this data from a website. I'm not sure about "linefeed".
 
Upvote 0
I'm thinking about another way around it. If I use the function =left(text,number) the first two are blank and the text starts at number 3. Any ideas to delete the first two?
 
Upvote 0
I think the best way is to determine exactly what it is you are dealing with. So, we can get the ASCII number code for the character, and then use an ASCII table to see what we are working with.

Here is how you can do that. First, determine exactly where this "character" exists in your string. So, if it is in the 8th place of the entry in cell A1, use this formula to get the ASCII code:
=MID(A1,8,1)

Once we know the code, we can look up to see what it is: (Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion)
Once we know what it is, we can address it.
 
Upvote 0
I'm thinking about another way around it. If I use the function =left(text,number) the first two are blank and the text starts at number 3. Any ideas to delete the first two?


Hi

Use Find/Replace. Replace ?? with nothing.
 
Upvote 0
Hi

Use Find/Replace. Replace ?? with nothing.
Pedro, won't that replace every pair of characters, not only the first 2 characters?


.. the first two are blank and the text starts at number 3
If that is consistent, then Text to Columns (Fixed width) should suffice.
If doing it manually, do Text to Columns -> Fixed width -> Click the ruler at position 2 -> Double click any other dividers that Excel may ave automatically inserted to remove them -> Next -> The 1st column of 2 characters should be highlighted so click 'Do not import column' -> Finish

If you want a macro to do that for you, try
Code:
Sub FixEm()
  Columns("A").TextToColumns DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 9), Array(2, 1))
End Sub
 
Upvote 0

Forum statistics

Threads
1,221,674
Messages
6,161,215
Members
451,691
Latest member
fjaimes042510

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
Back
Top