SOLVED

IF or Vlookup?

Copper Contributor

In one of the cells in my spreadsheet there is an address field with Town, Region and Country. 

 

The information i am trying to extract is the country that appears in the cell i is this possible? I have exhausted my limited knowledge and would welcome any advice. As an example please see below - the information that i need to be in the second column is the country (such as United States and Ireland 

 

Bandera, Texas, United States  
Bandon, County Cork, Ireland  
Banff, Alberta, Canada  
Banff, Scotland, United Kingdom  
Bangor, Maine, United States  
Bangor, Northern Ireland, United Kingdom  
4 Replies
best response confirmed by MarkHSEPeople (Copper Contributor)
Solution

@MarkHSEPeople 

 

Assuming your address is in A2, then try this...

 

In B2

=TRIM(RIGHT(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2)))

and copy it down.

The output would be like this...

 

Address.jpg

@Subodh_Tiwari_sktneer Thank you VERY much for your help with this - your formula worked a treat! 

You're welcome @MarkHSEPeople! Glad it worked as desired.

 

Please take a minute to mark the post with the proposed solution as a Best Response to mark your question as Solved.

1 best response

Accepted Solutions
best response confirmed by MarkHSEPeople (Copper Contributor)
Solution

@MarkHSEPeople 

 

Assuming your address is in A2, then try this...

 

In B2

=TRIM(RIGHT(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2)))

and copy it down.

View solution in original post