+ Reply to Thread
Results 1 to 4 of 4

Separating Single-Cell information into 3 cells - is there a formula to do this?

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Separating Single-Cell information into 3 cells - is there a formula to do this?

    Hello.
    I have a big excel with address written like this (example) in a single cell:

    Manhattan Beach, CA 90266-7225


    I would like separate into 3 cells - separating into City, State, Zip.

    Anyone knows the formula?

    Thanks you so much!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Separating Single-Cell information into 3 cells - is there a formula to do this?

    hi there. it's always good to upload a few eg in an excel file & show us your desired results. if you could, share with us some patterns you know because not all of us are familiar with your City, State & Zip. from what i assume; City before comma, State before the space of the number, & last series of numbers are the Zip. so maybe:
    =LEFT(A1,FIND(",",A1)-1)
    =LEFT(MID(A1,FIND(",",A1)+2,255),FIND(" ",MID(A1,FIND(",",A1)+2,255))-1)
    =MID(A1,FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))),255)

    the last one could be as simple as:
    =RIGHT(A1,10)
    provided ZIP is always 10 characters

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Separating Single-Cell information into 3 cells - is there a formula to do this?

    benyben123, Good Evening.

    If your data have the same layout then you can use these formulas:

    If your data is at A2:

    B2 --> =LEFT(A2,SEARCH(",",A2)-1)
    C2 --> =MID(A2,SEARCH(",",A2)+2,2)
    D2 --> =RIGHT(A2,10)

    Is it what you desire?

    Tell us if it worked for you.
    I hope it help you.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  4. #4
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating Single-Cell information into 3 cells - is there a formula to do this?

    Thank you so much!

    I'll try it when I get back home.

+ 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. Separating information from a single cell
    By rofl in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 12-05-2012, 02:23 AM
  2. [SOLVED] Separating information in the same cell
    By KsuGuy26 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2012, 12:38 PM
  3. Separating information within the cell
    By charlie11k in forum Excel General
    Replies: 1
    Last Post: 07-20-2009, 08:28 PM
  4. Separating Information in Cells
    By xKylex in forum Excel General
    Replies: 9
    Last Post: 08-07-2007, 07:32 AM
  5. [SOLVED] Separating information in one cell into several cells
    By ChuckW in forum Excel General
    Replies: 5
    Last Post: 02-14-2006, 10:25 AM

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