Text to Columns

Noddy13

New Member
Joined
Jan 25, 2010
Messages
45
Hi,

I need to split a cell into columns where the data is imported in 9 lines with each line being its own subject such as the below. Each line should be its' own column.

Time of call: 17:17
Category: Dogs
Subject: Lost Dog
Caller: Mxxxxn Mxxxxxy
Phone: 0xxxx0xxx4
Address: 3 XXXXXXXX DR , TXXXXXXIE WA XXXX
Location:
Details: Callers M Labradoodle has been in the pound since the 8th of June and would like to get him out. Pound ID number- XXXX
Reference number: GOXXXX16

I've tried using the text to column function however there is no way to slpit by line within a cell.

Thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
B1=TRIM(MID(SUBSTITUTE($A1,CHAR(10),REPT(" ",999)),(COLUMN(A1)-1)*999+1,999))
copy formula to the right cells untile the formula returns "".
 
Upvote 0
I need to split a cell into columns where the data is imported in 9 lines with each line being its own subject such as the below. Each line should be its' own column.

I've tried using the text to column function however there is no way to slpit by line within a cell.
You can use Text To Columns for this... bring up the Text To Column dialog box and select Delimited on the first dialog page... on the second dialog page, click into the blank field next to the checkbox labeled "Other" and press CTRL+J. You should be able to finish up after that.
 
Upvote 0
Rick, I'm guessing Ctrl+J is some form of a carriage return character? If so, do you know what list (like key-code, uni-code, ascii, etc) that would be under and where could a person find such a list?
 
Upvote 0
Rick, I'm guessing Ctrl+J is some form of a carriage return character? If so, do you know what list (like key-code, uni-code, ascii, etc) that would be under and where could a person find such a list?
It is the old teletype keyboard character keypress for a vertical line feed. This table...

http://ascii-table.com/control-chars.php

shows you all of the old teletype Control characters. I think Excel only recognizes Ctrl+J, but only in certain places. I think Microsoft Word supports more of them.
 
Upvote 0
Yes, it works in certain places. Format Cells---Custom---Ctrl+J also works in the textbox for Type.
 
Last edited:
Upvote 0
Good information, thank you sir :) .

I was trying to do it with T2C myself when I saw the question. I'd get to Delimiter-Other...first I tried to just hit Alt+Enter...(DINGGGGGGG), ok no can do....then I tried to type in "Chr(13)", I got as far as "C" (DINGGGGGG), well alright then...

and then I was done :) . Now I know (til I forget). Thanks again.
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,872
Members
449,267
Latest member
ajaykosuri

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