Pulling out a country from an address

prochi

New Member
Joined
Sep 21, 2018
Messages
1
Quick backstory that helps explain what I'm trying to figure out how to do. Every week I download a report for my work that has the following info:
| Client ID | Client Name | Client Address |

My boss is wanting to add an additional column to the report that pulls the country out of the address. Normally this shouldn't be too hard, right? Well, I wish! Or if it is I sure as heck and way overthinking it. The issue is that the report is pulled from a database of clients that are worldwide and all of the addresses are slightly different in the way they're made up.

For example, an address from the US might be:
123 Random Road, Fakeville, New York, United States of America, 52525
OR
456 Fake St, Randomville, Penn., United States of America (the), 65856.

And then an address from Japan might look like:
9-4, 1-Naka, Nagiyo, Naga-ya, Nagoya, Aichi, Japan, 460-9530

So my first thought was that I could just use a =right or =left. Or something along those lines.

But then we have addresses from places like Columbia that are more like this: KM 8.5 BODEGA EN VENTA 80, Engativá, Bogota, Colombia.

So I have no idea where to even start for this. I tried to google and someone mentioned setting up an index, but I have no idea how to go about doing that or implementing it.

Any and all input would be amazing!!!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top