separate text

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have a column which has text like following

123 main street CityName StateName 123456

I want to put street number, name, cityname, statename, postal code all in different columns. I know it is possible to use Text-to-Column but I was thinking about using functions/formulas in case the length is different (I know that wont effect text to column) but also if instead of space there is - or ; or ,.

Thanks a lot
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Text to columns for address would require delimiter AND the address be in the correct standard formatting.
Check out the UPS addressing guide book and then compare to what is often seen.
There should be no use of punctuation in the address so any commas seen should be the delimiters. Counting commas can indicate if there is a Address Line 2.

One trick can be to send the address to Google Maps or Bing Maps and let those systems clean the address that can then be parsed with better consistency.
Function/formula parsing is done using FINDs LEFT/MID/RIGHT and other functions.
 
Upvote 0
separate into columns

Hi
I have this text and i want to separate street number from street name, from the city, from the state, from the country and put them in different columns. I know it is possible to do it using text-to-column. But want to know how it cam be done using excel functions. Thank you

[TABLE="width: 500"]
<tbody>[TR]
[TD]name[/TD]
[TD]address[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]123 Main street Waterloo Ontario Canada N6H 1H3[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Re: separate into columns

I have merged your thread in with the same question you asked a week and a half ago.

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
 
Upvote 0
Re: separate into columns

Yes I actually was looking for that post but could not find it. Thanks will try to search harder next time.
 
Upvote 0
Re: separate into columns

Yes I actually was looking for that post but could not find it. Thanks will try to search harder next time.
If you click on the "Subscribed Threads" menu item in the upper left corner under the "MrExcel" banner on every page, it will show you all the posts you have made and all the threads you have subscribed to.
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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