Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 1191

Is there a way to do a partial text vlookup?

$
0
0

I am trying to vlookup partial text which will return a specific value if found within my data. I have a list of postcodes (zipcodes) and would like a vlookup to look up the first part of the postcode in order to put the corresponding country in to the column next to it. So, for example, I have the following -

Sheet 1A1 - AB45 78HA2 - TH6 89KA3 - EH7 4FGA4 - G9 6DSA5 - G17 9IC

B1-B5 Blank - this is where I would like the country to appear.

Sheet 2A1 - ABA2 - THA3 - EHA4 - G

B1 - WalesB2 - EnglandB3 - ScotlandB4 - Scotland

Can anybody think of a formula that would help? It is also quite confusing as some of the strings are 2 letters while some are only 1 letter (like 'G')...


Viewing all articles
Browse latest Browse all 1191

Trending Articles