+ Reply to Thread
Results 1 to 5 of 5

splitting city, state, zip from 1 cell into 3 no equal length

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    LI, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post splitting city, state, zip from 1 cell into 3 no equal length

    i have an excel spread sheet (2010) that contains city, st and zip in one cell. i need to separate these into 3 indivual cells. My problem is the some of the cities are one, two and sometimes 3 words so using a delimiter of space will not separate them correctly. Any ideas? Thank you,
    Joanne

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: splitting city, state, zip from 1 cell into 3 no equal length

    Hi and welcome to the forum!

    Ok, so the City string varies, but what you can tell us about the State and Zip? For example, will they always be the last two space- (or comma-) separated strings in the cell?

    Perhaps if you gave a few examples of the strings you're dealing with?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    01-30-2014
    Location
    LI, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: splitting city, state, zip from 1 cell into 3 no equal length

    Thank you.
    no commas, no punctunation, nothing is uniform in the cell. here are a few examples. The city starts in position 1 followed by 2 char state then 5 digit Zip.

    LAKE SUCCES NY 11042
    HEWLETT NY 11557
    NEW HYDE PK NY 11042

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: splitting city, state, zip from 1 cell into 3 no equal length

    Look at the attached.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    01-30-2014
    Location
    LI, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: splitting city, state, zip from 1 cell into 3 no equal length

    Work GREAT!!! Thank you
    Joanne

+ 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. Replies: 2
    Last Post: 06-19-2012, 11:30 AM
  2. city, state, zip from a single cell to multiple cells
    By wjs2002 in forum Excel General
    Replies: 3
    Last Post: 04-29-2005, 02:06 AM
  3. [SOLVED] city, state, zip in same cell
    By whs2002 in forum Excel General
    Replies: 2
    Last Post: 04-29-2005, 02:06 AM
  4. Splitting City State Zip
    By Pete Provencher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2005, 06:06 PM
  5. Replies: 6
    Last Post: 02-06-2005, 10:06 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