After hours of fruitless searching, I've made up my mind to simply post my question. For work-related reasons, I need to take a series of single cells that contain addresses and split them all into 4 or 5 cells: street address, street address 2, city, state, and zip code. I've cobbled together macros that extract that zip code and state (surprisingly easy because they're always the same number of characters), and I would love to have a similar macro/method to extract the last word of the remaining aggregate address and put it in the "city" column. Obviously this wouldn't work 100 percent of the time, what with there being many cities with more than one word, but it would work a lot of the time and save me hours.
I hope that's clear, but if not, here's an example:
I get 1234 N Main St. Phoenix AZ 12345 in column A
"12345" gets moved to column E
"AZ" gets moved to column D
I would like "Phoenix" to move to column C
I'd like to note that I do understand (thanks to other posts here!) how to use a formula in column C to put the last word from column A in column C, but that I need "Phoenix" to no longer be in column A when I'm done -- and none of the formulas that I've come across seem to do this.
Your help is greatly appreciated!
I hope that's clear, but if not, here's an example:
I get 1234 N Main St. Phoenix AZ 12345 in column A
"12345" gets moved to column E
"AZ" gets moved to column D
I would like "Phoenix" to move to column C
I'd like to note that I do understand (thanks to other posts here!) how to use a formula in column C to put the last word from column A in column C, but that I need "Phoenix" to no longer be in column A when I'm done -- and none of the formulas that I've come across seem to do this.
Your help is greatly appreciated!