VLook-Up Match first 3 characters of one column with another column

user2364254 picture user2364254 · May 9, 2013 · Viewed 118.4k times · Source

I'm trying to match a list of words from Column A against another list of words in column B. I only need the first three characters of the words in column A to match the first three characters of the words in column B. I would like the result to be the same value in column B. Is this possible?

Here is what I'm using: =VLOOKUP(LEFT(A1,3),B$2:B$22, 2,TRUE)

But, I keep getting #N/A. Can anyone help?

Answer

barry houdini picture barry houdini · May 9, 2013

Try using a wildcard like this

=VLOOKUP(LEFT(A1,3)&"*",B$2:B$22,1,FALSE)

so if A1 is "barry" that formula will return the first value in B2:B22 that starts with "bar"