+ Reply to Thread
Results 1 to 3 of 3

separate address data in a cell

  1. #1
    Joe in CT
    Guest

    separate address data in a cell

    Greetings, I have this information in one cell-
    777 Anywhere Street
    Happy Town, CT
    The only comma is just after town. I need to separate out into street
    addresss, town and state. How do I do this?

    Thanks


  2. #2
    Ron Coderre
    Guest

    RE: separate address data in a cell

    Try this:

    The carriage return could be one of the followin ASCI codes:
    0010
    0013
    0009

    Select your column of cells
    Edit|Replace
    Find what: (Hold down the [Alt] key...type 0010...Release the [Alt] key
    Replace with: , (that's a "comma")
    Click the [Replace All] button
    (if it can't find any...sequentially try the others until you get "hits")

    Data|Text-to-Columns
    Delimited
    Delimter: Comma
    Click the [OK] button

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Joe in CT" wrote:

    > Greetings, I have this information in one cell-
    > 777 Anywhere Street
    > Happy Town, CT
    > The only comma is just after town. I need to separate out into street
    > addresss, town and state. How do I do this?
    >
    > Thanks
    >


  3. #3
    Ron Rosenfeld
    Guest

    Re: separate address data in a cell

    On Sat, 18 Mar 2006 14:44:28 -0800, Joe in CT <Joe in
    CT@discussions.microsoft.com> wrote:

    >Greetings, I have this information in one cell-
    >777 Anywhere Street
    >Happy Town, CT
    >The only comma is just after town. I need to separate out into street
    >addresss, town and state. How do I do this?
    >
    >Thanks


    Download and install Longre's free morefunc.xll add-in from

    Assuming the street address is on the first line; the only comma is between the
    city and the state; and the state is always a two capital letter string at the
    end:

    Street Address:
    =REGEX.MID(A1,".*")

    City
    =REGEX.MID(A1,".*(?=,)")

    State
    =REGEX.MID(A1,"\b[A-Z]{2}$")
    --ron

+ 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