Jump to content
Server Maintenance This Week. ×

Help on extract data from an address field into separate fields


This topic is 727 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi All,

I have a text field which is used for a full property address. I need to extract this data into separate fields, [street address], [city], [state] and [zip]. There are variables I don't know how to address when using Leftwords, Middlewords and Rightwords. For example, an address maybe easy, such as [123 Main Street] [Manhattan], [KS] [88888], while another may be [1234 East 164th Ave, Ste 100] [Saint Louis], [MO] [88888]. Wondering is anyone knows a way to make work or can give advice.

Thanks for any help!

Link to comment
Share on other sites

I am assuming those brackets are not present in the original data? Unless you can find some rules that even someone who doesn't understand the meaning of the address (such as a computer) could use, the task will be impossible to automate.

Now, the two given examples suggest that it would be quite easy to extract the state and the ZIP code; in fact, you have several choices here, e.g. the last two words, or the last 2 + 5 characters, or the part after the last comma. However, I do not see an equally easy way to separate the street address part from the city name.

 

Edited by comment
Link to comment
Share on other sites

This topic is 727 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.