+ Reply to Thread
Results 1 to 2 of 2

How to separate address now in 1 cell into 4 cells

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    How to separate address now in 1 cell into 4 cells

    Can someone help me break complete address, all in 1 cell, into Address, City, State and Zip into separate cells ? Each value is separated by a comma, except for the 5 digit zip code at the end that only has a space separating the zip from the state.

    SAMPLE ADDRESS:

    1387 W. Francis St., Ontario, Ca. 91762

    Thanks in advance.
    Last edited by Launchnet; 09-10-2010 at 01:05 AM.
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: How to separate address now in 1 cell into 4 cells

    Hi Matt,

    If that address is in A1, select A1 and use Data -> Text To Columns.
    Select Delimited and click Next.
    Check the box next to Comma and click Next.
    Click Finish.

    That will put everything into 3 cells (A1:C1). In D1 use the formula

    =LEFT(C1,FIND(" ",C1)-1)

    In E1 use the formula

    =RIGHT(C1,5)

    Copy D1 and E1, then right-click on C1 and use PasteSpecial -> Values. (You can then delete E1.)

    A macro could do this as well, if you have many rows to adjust.

+ 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