Converting Text to Column issue

khawarameer

Board Regular
Joined
Jun 2, 2009
Messages
152
Hello All,

I need to convert a text string to columns. The fields of the string are bifurcated with 3 to 4 spaces each. However the string contains "Name" and "Address" fields which naturally have spaces. When i use to option text to column using spaces it takes every word of name and address fields and put them in separate columns. Is there a way to put a special character where ever more than one space occurs in the string. It will solve my problem.

Regards


Khawar
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Have you considered doing a Find / replace ....find the 3 or 4 spaces and replace with say a comma.
So, then the text to columns will only split at the spaces ?
 
Upvote 0
Have you considered doing a Find / replace ....find the 3 or 4 spaces and replace with say a comma.
So, then the text to columns will only split at the spaces ?

I have tried Find and Replace however doing so fills the special character on every space.
 
Upvote 0
You must have only typed one space in the find and replace, if it is 3 spaces type 3 spaces in the Find/Replace.
If you type 3 spaces then it won't replace a single space.
 
Upvote 0
Thanks Mark, my comment obviously wasn't clear enough...:beerchug:
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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