+ Reply to Thread
Results 1 to 2 of 2

Extracting Text and Numbers

  1. #1
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Extracting Text and Numbers

    I have a spreadsheet that includes something like, "Beverly Hills 90210", what's the easiest way to separate the one field into two fields (city and zip)? I've attempted Text to Columns, separating by space, but because the city names are not consistent, it isn't very simple. But I can separate the zip by using the =RIGHT formula, having trouble with the city.
    Last edited by mcmuney; 01-12-2011 at 06:37 PM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Extracting Text and Numbers

    If the ZIP is always 5 digits on the right and preceded by a space, for ZIP use:

    =RIGHT(A1,5)

    And for city use:

    =LEFT(A1,LEN(A1)-6)

    HTH,
    Jason

+ 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