Separate information in single cell into multiple column

Charles Toh

New Member
Joined
Mar 25, 2011
Messages
6
Dear all,

I need help. How can i separate the customer information in the single cell into multiple columns? or how to add comma then using text to column. below is the example.

Single cell (A1)

Winsland Pte Ltd
3 bukit bakri
5th storey
Winsland house 1
Singapore
239219
Mr Steven Chua
736 3422

Output

B1 = Winsland pte Ltd
C1= 3 bukit bakri
D1= 5th storey
E1= Winsland house 1
F1= Singapore
G1= 239219
H1= Mr Steven Chua
I1= 736 3422

Thanks

Charles
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
In Find and Replace dialog, put the cursor in Find and type on the numpad while holding Control: 010

Replace it with comma. Then run a regular text-to-columns routine.
 
Upvote 0
Put this in cell B1
=SUBSTITUTE(A1,CHAR(10),",")
...and copy it down column B for each entry in column A

  • Select column B and copy
  • With Column B still selected, Select Edit\Paste Special: Values
  • This will replace the formulas in column B with the comma delimited text.
  • Now you could use Text to Columns on column B
 
Upvote 0
Put this in cell B1
=SUBSTITUTE(A1,CHAR(10),",")
...and copy it down column B for each entry in column A

  • Select column B and copy
  • With Column B still selected, Select Edit\Paste Special: Values
  • This will replace the formulas in column B with the comma delimited text.
  • Now you could use Text to Columns on column B

Hi Alpha,

Genius... Work great for me.
Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,767
Members
452,940
Latest member
rootytrip

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