Can you post a sampling of a handful of realistic looking values that you will have in column B?
These things can get really tricky, as countries and addresses can have any number of words in them.
And if there are any "soft carriage returns" in them, that may be helpful.
So we really need a realistic picture of what your data actually looks like (and not some dummied-down example).
The important thing to remember with Excel is that it cannot "think" for itself - it is very literal. It can only do what you tell it to.
So you have to supply the exact logic/rules it needs to use to determine these things.
Usually, if on paper you can come up with the list of rules it needs to follow to parse the data, and it works for ANY and ALL your rows of data, we can program to that.
However, if you have too many exceptions, and cannot come up with hard-and-fast rules that will work on all data, then you are going to have a problem (you cannot program that which you cannot conceive).
In many cases, when dealing with things like names and addresses, people often have to settle with coming up with a solution that works on 90-95% of their data, and then realize they need to review it to fix all the exceptions manually.