troubleshooting Question

EXCEL VBA Parsing City State ZIP

Avatar of Gary11734
Gary11734Flag for United States of America asked on
Microsoft ExcelVB Script
8 Comments1 Solution2076 ViewsLast Modified:
I have an Excel File I want to manipulate. One column  includes City, State and Zip in the same cell.
I would like a macro that will loop through the following:

Portion of the file:
COLORADO SPRINGS, CO 80901-2810
JACKSONVILLE, FL 32206-0005
JACKSONVILLE, FL 32226
JACKSONVILLE, FL 32256-1308
GAINESVILLE, FL 32606
PONTE VEDRA BEACH, FL 32082
OSKALOOSA, IA 52577
JACKSONVILLE, FL 32256
JACKSONVILLE, FL 32250
ST. AUGUSTINE, FL 32084

Since I need to parse this data that has many variables, I thought the best way would be the following:

Loop through the column  and move the states first. Then another  pass would be to either move the remaining text or Number (Zip Code). The move would consist of moving the data either right or left to the adjacent row.

Thanks for the help

Gary
 
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros