+ Reply to Thread
Results 1 to 5 of 5

How extract City and State from list where not all addresses are in same format (excel 07)

  1. #1
    Registered User
    Join Date
    04-06-2014
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2007
    Posts
    3

    How extract City and State from list where not all addresses are in same format (excel 07)

    Hello,

    I have a rather large data set of addresses from around the world. This has made it difficult to extract the city, state, and country information as now all addresses are in the same format. Would anyone happen to know a way to extract the information I need. Eventually I'm trying to sort the data so I can create a histogram of where most of the users are located. I'm using Excel '07 btw.

    Trader Vic's, Al Mussalla Road, Al Murar, Sharjah, 41974, United Arab Emirates
    Trader Vic's, Al Mussalla Road, Al Murar, Sharjah, 41974, United Arab Emirates
    Home centre, Wadi Mushaireb Street, Fereej Abdul Aziz (14), Doha, Qatar
    Home centre, Wadi Mushaireb Street, Fereej Abdul Aziz (14), Doha, Qatar
    Homestead, Miami-Dade County, Florida, United States of America
    Al Luqta, Old Al Rayyan (52), Al-Rayyan, Ar Rayyan, Qatar
    Dukhan Road, Al-Rayyan, Qatar
    Dukhan Road, Al-Rayyan, Qatar
    Al Zahra Street, Sharjah Industrial Area 4, Sharjah, United Arab Emirates
    Sheikh Maktoom bin Rashid Al Maktoom Street, Muwayhat, Ajman, United Arab Emirates
    Southwest 312th Street, Homestead, Miami-Dade County, Florida, 33033, United States of America
    Southwest 261st Street, South Allapattah, Miami-Dade County, Florida, 33039, United States of America

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How extract City and State from list where not all addresses are in same format (excel

    Hi and welcome to the forum

    Try Text2Columns with , (comma) as the delimiter
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-06-2014
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How extract City and State from list where not all addresses are in same format (excel

    Thanks for the response. The problem is not all of the addresses have the street name or some have the county information included. So I can't do text-to-columns because the information will not end up in the same column. To give you an example

    1. 123 ABC St, Pittsburgh, PA
    2. 123 ABC St, Pittsburgh, Allegheny County, PA

    If I put this in the text-to-columns the problem would be that PA would end up in different columns. I need a way to extract the city and state information from close to 20,000 addresses.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How extract City and State from list where not all addresses are in same format (excel

    and that could be anywhere in an essentially random strong of letters and spaces (think of how excel sees things). If you had no idea which word-groups meant what, how would you do this manually?

  5. #5
    Registered User
    Join Date
    04-06-2014
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How extract City and State from list where not all addresses are in same format (excel

    Well city and state are easy to gather. Just not sure how to extract that information. It would be cool if I could search to see the frequency New York City for instance came up in my data set but the problem is there are some streets named New York City.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Problem Extracting State(Text) from a long list of addresses.
    By seaspi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2013, 05:25 PM
  2. Replies: 2
    Last Post: 06-19-2012, 11:30 AM
  3. extract city using city list lookup
    By terrysoper1973 in forum Excel General
    Replies: 1
    Last Post: 09-07-2011, 01:43 PM
  4. Replies: 15
    Last Post: 02-21-2005, 05:06 AM
  5. Replies: 6
    Last Post: 02-06-2005, 10:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1