Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,670
Default Extract Mailing Address to multiple cells

I have been provided with a few thousand mailing addresses. Each address is
written into a single cell, i.e. 123 Fair St. Orlando FL 12345, instead of
123 Fair St. / Orlando / FL / 12345.

I need to break out the addresses into separate columns by Street / City /
State / Zip.

I am familiar with the text to columns function, but the addresses are not
consistent enough to make this straight forward.

Any help is greatly appreciated.

Thank You,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Extract Mailing Address to multiple cells

On Mon, 3 Nov 2008 07:36:00 -0800, Eric wrote:

I have been provided with a few thousand mailing addresses. Each address is
written into a single cell, i.e. 123 Fair St. Orlando FL 12345, instead of
123 Fair St. / Orlando / FL / 12345.

I need to break out the addresses into separate columns by Street / City /
State / Zip.

I am familiar with the text to columns function, but the addresses are not
consistent enough to make this straight forward.

Any help is greatly appreciated.

Thank You,


It can be done using formulas, but the difficult part will be the break between
the street address and the city. It would be simple if all the cities in your
list are a single word. But that would be unusual.

Do you have a list of city names we could use?

Here is the general algorithm:

Zip code: last "word" in the string, all digits with an optional "-"
State: 2 letter word preceding zip code

Street address beginning of string to start of City
City: look up from list

--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a address book for mailing labels cheycheys New Users to Excel 6 January 30th 06 07:57 PM
address data base in which I can choose which to use for mailing Grammurph7 New Users to Excel 4 December 16th 05 08:11 PM
How do I put two names on a mailing list at the same address witho rather be fishng Excel Discussion (Misc queries) 0 April 12th 05 10:21 PM
How do I put two names on a mailing list at the same address witho dlw Excel Discussion (Misc queries) 0 April 12th 05 10:14 PM
Extract comma broken address to cells bbc1 Excel Discussion (Misc queries) 5 February 14th 05 11:21 AM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"