Unstructured Addresses and Countries

GrimGrin

New Member
Joined
Nov 7, 2019
Messages
1
I have a column with full international addresses with no separators (commas or semicolons). I need to search each cell for a country name and put it in the cell next to it.

I've tried to use the search function and it works with one country but when I introduce the full country list, I get a #value ! Error.

This is my first post here. I really appreciate any assistance!
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,174
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
Welcome to the forum.

Assuming youyr text is in A2, and the country list is in D1:D10, you could use:

=LOOKUP(1E+100,MATCH("*"&$D$1:$D$10&"*",A2,0),$D$1:$D$10)

and copy down.
 

Forum statistics

Threads
1,078,145
Messages
5,338,507
Members
399,238
Latest member
amuthan10

Some videos you may like

This Week's Hot Topics

Top