+ Reply to Thread
Results 1 to 3 of 3

Splitting City State Zip

Hybrid View

  1. #1
    Pete Provencher
    Guest

    Splitting City State Zip

    Excel 2000:

    I'm trying to split the city state zip field into individual fields. I was
    able to get the zip and state by using the folllowing formulas:

    State: =LEFT(RIGHT(M2,10),3)

    Zip: =RIGHT(M2,5)

    But, I can't seem to get the city. The problem being no comma betwee the
    city and St and cities with two name:

    Loris SC 29573
    Myrtle Beach SC 29577
    Little River SC 29588

    Any help will be appreciated.


    Pete Provencher



  2. #2
    JE McGimpsey
    Guest

    Re: Splitting City State Zip

    How about

    =TRIM(LEFT(TRIM(A1),LEN(TRIM(A1))-9))

    If your addresses are all well-formed (e.g., no extra spaces), that
    reduces to

    =LEFT(A1,LEN(A1)-9)


    In article <OLn$XYVDFHA.1040@TK2MSFTNGP09.phx.gbl>,
    "Pete Provencher" <pprovencher@sitetechsystems.com> wrote:

    > Excel 2000:
    >
    > I'm trying to split the city state zip field into individual fields. I was
    > able to get the zip and state by using the folllowing formulas:
    >
    > State: =LEFT(RIGHT(M2,10),3)
    >
    > Zip: =RIGHT(M2,5)
    >
    > But, I can't seem to get the city. The problem being no comma betwee the
    > city and St and cities with two name:
    >
    > Loris SC 29573
    > Myrtle Beach SC 29577
    > Little River SC 29588
    >
    > Any help will be appreciated.
    >
    >
    > Pete Provencher


  3. #3
    Pete Provencher
    Guest

    Re: Splitting City State Zip

    That worked1 Thanks a lot.

    Pete Provencher
    "JE McGimpsey" <jemcgimpsey@mvps.org> wrote in message
    news:jemcgimpsey-17E049.13523907022005@msnews.microsoft.com...
    > How about
    >
    > =TRIM(LEFT(TRIM(A1),LEN(TRIM(A1))-9))
    >
    > If your addresses are all well-formed (e.g., no extra spaces), that
    > reduces to
    >
    > =LEFT(A1,LEN(A1)-9)
    >
    >
    > In article <OLn$XYVDFHA.1040@TK2MSFTNGP09.phx.gbl>,
    > "Pete Provencher" <pprovencher@sitetechsystems.com> wrote:
    >
    > > Excel 2000:
    > >
    > > I'm trying to split the city state zip field into individual fields. I

    was
    > > able to get the zip and state by using the folllowing formulas:
    > >
    > > State: =LEFT(RIGHT(M2,10),3)
    > >
    > > Zip: =RIGHT(M2,5)
    > >
    > > But, I can't seem to get the city. The problem being no comma betwee the
    > > city and St and cities with two name:
    > >
    > > Loris SC 29573
    > > Myrtle Beach SC 29577
    > > Little River SC 29588
    > >
    > > Any help will be appreciated.
    > >
    > >
    > > Pete Provencher




+ 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