Thread: City State Zip
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default City State Zip

One way:

A1: Little Rock AR 72207
B1: =LEFT(TRIM(A1),LEN(TRIM(A1))-9)
C1: =MID(TRIM(A1),LEN(TRIM(A1))-7,2)
D1: =RIGHT(TRIM(A1),5)

Copy down as far as necessary. Copy and Edit/Paste Special/Values
columns B:D

In article ,
Texas Nuckols wrote:

When I use Text to Columns this separates fine until it gets to Oklahoma
City, Fort Smith, San Diego, Little Rock, etc. Then I get a separate column
for City, Smith, Diego, Rock. Raw data had City State and Zip all separated
by Spaces, no commas or tabs. The database is too long to do all of these
manually. Please Help Soon??!

Need this:
Little Rock AR 72207

to be:
|Little Rock|AR|72207|

Not:
|Little|Rock|AR|72207