I ave a report with a few thousand entries where the street address, city, state and ZIP are listed in one cell. I need to grab the city name from the middle of the cell.
Examples:
7A Highland Way Kingston MA 02364
PO Box 582AB-12 Keanu HI 96749
17895 Lake Mendo Dr Mirage Island CA 92270
89576-86 Kahauloa Rd Captain Hook HI 96704
The City name varies in length and may have more than one word in the name. The Street is variable as well. The state is always two letters and the ZIP always 5 numbers. The is a single space between each data point.
I've been able to pull the ZIP and the State into separate columns, but I am stuck with the city. Is the a way to use MID and LEN to do this? Or VBA?
Examples:
7A Highland Way Kingston MA 02364
PO Box 582AB-12 Keanu HI 96749
17895 Lake Mendo Dr Mirage Island CA 92270
89576-86 Kahauloa Rd Captain Hook HI 96704
The City name varies in length and may have more than one word in the name. The Street is variable as well. The state is always two letters and the ZIP always 5 numbers. The is a single space between each data point.
I've been able to pull the ZIP and the State into separate columns, but I am stuck with the city. Is the a way to use MID and LEN to do this? Or VBA?