+ Reply to Thread
Results 1 to 3 of 3

Trying to seperate messy raw data, street, city, state, zip

  1. #1
    Registered User
    Join Date
    07-21-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Trying to seperate messy raw data, street, city, state, zip

    Hello, Just wanna say this forum has been a great help so far in sorting out and cleaning out a raw data dump i have from outlook.

    But after cleaning it up for a few days. I feel as if there much be a much simpler way to do this.

    My immediate issue is I have address that are all in one column

    1b: 4252 Pickford Way, Culver City, CA, 91754
    2b: 85191 S 79th St Westchester CA, 90045
    3b: 90210 Fiji Way Unit D Marina Del Rey, CA 90292

    In alot of cases there are no commas seperating them.

    Is it possible to put in a formula in 1 cell stating
    If b1 matches a city in a table i've made with all city names to insert that city into that cell?

    if b1="Culver City"OR"Westchester"OR"Marina Del Rey" insert matching city into C1?

    I'm dealing with roughly 12 cities total.

    All i've done so far which is really messy is make a new column with this =IF(ISNUMBER(SEARCH("*Westchester*",B1)),"Westchester","")
    and a new column for each city

    Sorry if i'm making this more complicated then it needs to be. Spent the entire day browsing excel forums in looking for a easy way to do this.

    Thanks ahead for helping.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Trying to seperate messy raw data, street, city, state, zip

    Try this workbook

    Add "Marina Del Rey" to Column G, (G4)

    "Cities" is a dynamic named range, add as many cities as you need, the formula will adjust to suit. the list must be continuous i.e. no blanks.

    The formula in C1 is an array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirm with Ctrl+Shift+Enter not just Enter
    Drag/Fill Down.
    Attached Files Attached Files
    Last edited by Marcol; 07-21-2012 at 07:01 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    07-21-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Trying to seperate messy raw data, street, city, state, zip

    OMG Thank you sooooo much.. Thank you thank you thank you

    You have have just taken a huge load off my shoulders thank you.

    The next part i have to work on is alot worse unfortunately . I'll be back thank you Marcol!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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