+ Reply to Thread
Results 1 to 4 of 4

Split Address In City & State Wise

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    44

    Split Address In City & State Wise

    Hi,

    I am looking for formula that splits City and State from Address (USA) like check below address ends with State and city. From this can we able to split using "comma (,)".

    Address:
    ------------------------------------------------------------
    2210 San Ramon Valley Boulevard, San Ramon ,CA
    2201 South Union Avenue, Chicago, IL
    1 Old Country Road, Carle Place, NY
    2828 West Parker Road b101, Plano, TX

    In above address Last 2 Characters are State and before state is Cities. Now can we split Only last 2 comma(,) data.

    Regards,
    Mohan

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Split Address In City & State Wise

    Try this in B1 and copy down


    =REPLACE(A1,1,FIND(",",A1)+1,"")

    Row\Col
    A
    B
    1
    2210 San Ramon Valley Boulevard, San Ramon ,CA San Ramon ,CA
    2
    2201 South Union Avenue, Chicago, IL Chicago, IL
    3
    1 Old Country Road, Carle Place, NY Carle Place, NY
    4
    2828 West Parker Road b101, Plano, TX Plano, TX
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    04-03-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Split Address In City & State Wise

    Same way if we have more then 2 comma..

    Address:
    ------------------------------------------------------------
    2210, San Ramon Valley, Boulevard, San Ramon ,CA
    2201 South Union, Avenue, Chicago, IL
    1 Old, Country Road, Carle Place, NY
    2828, West Parker Road, b101, Plano, TX

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Split Address In City & State Wise

    Like this?


    =TRIM(RIGHT(SUBSTITUTE(A1,",",REPT(" ",25)),25*2))

    Row\Col
    A
    B
    1
    2210, San Ramon Valley, Boulevard, San Ramon ,CA San Ramon CA
    2
    2201 South Union, Avenue, Chicago, IL Chicago IL
    3
    1 Old, Country Road, Carle Place, NY Carle Place NY
    4
    2828, West Parker Road, b101, Plano, TX Plano TX


    Or if you want state separated by comma use this

    =REPLACE(TRIM(RIGHT(SUBSTITUTE(A1,",",REPT(" ",25)),25*2)),LEN(TRIM(RIGHT(SUBSTITUTE(A1,",",REPT(" ",25)),25*2)))-2,1,", ")

+ 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. Extracting city state zip out of nasty address field
    By silvertrace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2015, 09:35 PM
  2. Replies: 3
    Last Post: 08-19-2014, 10:24 AM
  3. I need Help to parse address city state zip and country if applicable for all fields
    By danpotash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2013, 03:16 PM
  4. 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
  5. COMMON PROBLEM split name, address, city, state and zip
    By JohnSeito in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-16-2008, 07:31 PM

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