I have text files with the zip codes of various cities. These files are delimited with spaces.
I use johnske text import from the KB
http://vbaexpress.com/kb/getarticle.php?kb_id=497
examples:
Zip City Area Code
62820 Burnt Prairie 618
60527 Burr Ridge 630
60102 Lake in the Hills 847
The cities with two names I can join together with
=IF(ISTEXT(Import!C:C),Import!B:B&" "&Import!C:C,Import!B:B)
But I'm having trouble with cities with 3 names or more.
A better formula would be appreciated or better a VBA routine that can automate the process.
I have included sample text file in the zip.
Any assistance will be appreciated TIA!