+ Reply to Thread
Results 1 to 2 of 2

Breaking down city, state, and zip from one column into 3

  1. #1
    Registered User
    Join Date
    01-01-2012
    Location
    MD, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Breaking down city, state, and zip from one column into 3

    I am working in Excel, and have City, State, and Zip code in one column. I wish to break down the column into 3 separate columns: Col. 1: City, Col. 2: State, and Col. 3: Zip.
    I know how to do that, and I'm using the LEN formula to extract what I need from the first column. However, I have ran into a problem. In the zip code column, I have some 5 digit zip codes while others are 9 digits. Once I use the len formula, it extracts the state as well as the zip code for all the 5 digit zips. Is there something else I can do to only extract the zip codes whether they are 9 or 5 digits? Please help! Thanks!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,083

    Re: Breaking down city, state, and zip from one column into 3

    Can you upload few examples how your data looks like (in excel workbook).

    Result might be different if you expect something like:
    Las Vegas New Mexico 12345
    or
    Roswell New Mexico 12345
    or
    New York Wherever 12345 etc...

    What inputs do you expect?
    Never use Merged Cells in Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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