+ Reply to Thread
Results 1 to 11 of 11

Separating Street Address City State Zip that only contain spaces

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    Charlotte, NC
    MS-Off Ver
    2013
    Posts
    3

    Separating Street Address City State Zip that only contain spaces

    Hey guys,

    I am at a loss. Any help would be much appreciated because I have too much data (10K+ rows worth) to even think I could tackle this manually...

    Here's the scoop-- complete address info is being crammed into one cell, and I need this data separated into individual columns respectively

    SAMPLE:

    501 St. Joseph St. P.O. Box 5820 Sturgis Michigan 49081
    501 St. Joseph St. P.O. Box 5820 Sturgis Michigan 49081
    5217 Old Baumgartner Road St. Louis Missouri 61329
    5217 Old Baumgartner Road St. Louis Missouri 61329
    203 Enterprise CT Oostburg Wisconsin 57300-1656
    660 Innsbruck Drive Buffalo New York 12447
    660 Innsbruck Drive Buffalo New York 12447

    And the data can vary from there... some without zips, some without street names; however, the majority are like above.

    WHAT ON EARTH CAN I DO?? Any help is much appreciated.

    Thanks!

  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,929

    Re: Separating Street Address City State Zip that only contain spaces

    Hi, welcome to the forum

    wow, you really do have a problem here I thought at 1st that I could use some combo of left/mid/right, but I see no way to reliably and consitantly breaking those apart. There4 seems to be no way to ID where the street name ends and the town/city starts, or where the city ends and the state starts.

    A quick answer would be to try Text2columns, but that will just break out everything into it's own cells

    Where is this data coming from?
    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
    06-26-2015
    Location
    Charlotte, NC
    MS-Off Ver
    2013
    Posts
    3

    Re: Separating Street Address City State Zip that only contain spaces

    Yea man, it's pretty screwy. Text2Columns would serve as an even greater headache...

  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,929

    Re: Separating Street Address City State Zip that only contain spaces

    Where is the data coming from?

    I really cannot see how excel would know where to split the different sections apart. Heck, I would have to look close to even do it manually

  5. #5
    Registered User
    Join Date
    06-26-2015
    Location
    Charlotte, NC
    MS-Off Ver
    2013
    Posts
    3

    Re: Separating Street Address City State Zip that only contain spaces

    I can't really go into the source of the data... the only thing I know is that is the best, or worst, it will get.

  6. #6
    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,929

    Re: Separating Street Address City State Zip that only contain spaces

    I will ask other experts for their input, but I dont hold out much hope

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Separating Street Address City State Zip that only contain spaces

    You can't do it. Well that's not strictly true, but it's a humongous amount of work, you should really be looking at a commercial solution to do this. There are plenty out there and very reasonably priced

  8. #8
    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,929

    Re: Separating Street Address City State Zip that only contain spaces

    Thanks for the input, Kyle

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Separating Street Address City State Zip that only contain spaces

    I belive there is somewhere on the internet list of US towns and states.
    In that case you could have another sheet with those informations.

    For example:

    Please Login or Register  to view this content.
    And then you can extract rest of the address.

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Separating Street Address City State Zip that only contain spaces

    Hi TP,

    This works on your sample TP.xlsm - but a lot of entries may be required on the StatesEtAl sheet:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  11. #11
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Separating Street Address City State Zip that only contain spaces

    See here:

    http://ppccampaigngenerator.com/comprehensive-list-of-us-cities (3.6 mb)

    You can easily whittle it down to city, state and zip then vlookup from closed wb.
    Ben Van Johnson

+ 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. City, State Segregation from Address
    By Mohanmoni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2015, 04:49 PM
  2. [SOLVED] Split Address In City & State Wise
    By Mohanmoni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2015, 08:14 PM
  3. How to get rid of the city and state in the address?
    By excel1212 in forum Excel General
    Replies: 2
    Last Post: 09-08-2012, 05:30 PM
  4. [SOLVED] Trying to seperate messy raw data, street, city, state, zip
    By KraXed112 in forum Excel General
    Replies: 2
    Last Post: 07-21-2012, 03:15 PM
  5. [SOLVED] Seperating city and state, while removing excess spaces
    By Raven1515 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2012, 10:38 AM

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