+ Reply to Thread
Results 1 to 7 of 7

Extract city, state and zip code from a single cell

Hybrid View

  1. #1
    jajoseph@zoominternet.net
    Guest

    Extract city, state and zip code from a single cell

    is there a way to Extract city, state and zip code from a single cell

    sample data:

    4076 St. Andrews Ct. Canfield, OH 44406


  2. #2
    Ron de Bruin
    Guest

    Re: Extract city, state and zip code from a single cell

    Hi

    Try to use Data> Text to Columns in the menu bar

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    <jajoseph@zoominternet.net> wrote in message news:1107674941.810942.162640@c13g2000cwb.googlegroups.com...
    > is there a way to Extract city, state and zip code from a single cell
    >
    > sample data:
    >
    > 4076 St. Andrews Ct. Canfield, OH 44406
    >




  3. #3
    jajoseph@zoominternet.net
    Guest

    Re: Extract city, state and zip code from a single cell

    Is there a way to do it without using Text to Columns in the menu ba


  4. #4
    JulieD
    Guest

    Re: Extract city, state and zip code from a single cell

    hi

    any reason why you don't want to use text to columns as it would probably be
    the easiest option - are you looking for formulas or a vba solution?

    Cheers
    JulieD

    <jajoseph@zoominternet.net> wrote in message
    news:1107707119.371429.79870@l41g2000cwc.googlegroups.com...
    > Is there a way to do it without using Text to Columns in the menu ba
    >




  5. #5
    jajoseph@zoominternet.net
    Guest

    Re: Extract city, state and zip code from a single cell

    I would prefer a formula since I am doing this in excel. I want this
    to occur automatically, that is I why I do not want to use text to
    cloumns.


  6. #6
    Domenic
    Guest

    Re: Extract city, state and zip code from a single cell

    In article <1107707119.371429.79870@l41g2000cwc.googlegroups.com>,
    jajoseph@zoominternet.net wrote:

    > Is there a way to do it without using Text to Columns in the menu ba


    For the following format...

    New York, NY 012345

    ....try the following...

    City: =LEFT(A1,SEARCH(",",A1)-1)

    State: =MID(A1,SEARCH(",",A1)+2,2)

    Zip Code:

    =MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),255)

    ....confirmed with CONTROL+SHIFT+ENTER.

    For the following format...

    New York, New York 012345

    ....replace the formula for State with the following...

    =MID(A5,SEARCH(",",A1)+2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"
    ))-2-(SEARCH(",",A1)+1))

    ....confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

  7. #7
    jajoseph@zoominternet.net
    Guest

    Re: Extract city, state and zip code from a single cell

    Thank you this did the trick.


+ 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