You are on page 1of 2

# Making VLOOKUP formulas go wild [VLOOKUP

Week]
Posted on November 1st, 2010 in Learn Excel - 16 comments

Situation
Often we need our lookup formulas to go wild. Not in the sense of go-wild-and-chomp-a-few-kilo-bytes-of-data
sense. But wild like wild cards.
For eg. In the below data, we may not remember the full name of sales person, but we know that her name
starts with jac. Now how do you get the sales amount for that person?
Data:

Solution
Simple. Use wild cards. Like this: =VLOOKUP("jac*",\$B\$5:\$E\$17,3,FALSE)to fetch the value from 3rd column
for the person whose name starts with jac
Examples:

Sample File

Special Thanks to
Michael Pennington, Lukas for the tip. (Click on the name to see their tip)

Similar Tips

Excel SUMIF and COUNTIF Formulas What are they, how to use & examples
Search Workbooks using Conditional Formatting & Wildcards

10

Email

Print

1.

## Ram Kapoor says:

November 1, 2010 at 12:40 pm
Hi Chandoo,
To answer the first question we can use VLOOKUP(*ve*,\$B\$5:\$E\$17,2,FALSE)

2.

Tom says:
November 1, 2010 at 1:28 pm
This is a great tip, and one I can see applying to other formulas as well. My only concern: what if your
wildcard has more than one answer? Vlookup can only handle one response, correct? And it will only
return one value (im guessing the first record that it encounters where it meets that condition). This
could really mess you up if you just assumed it was right so be careful with Vlookup and wildcards!

3.

dan l says:
November 1, 2010 at 1:48 pm
Works well with a concatenate too
=VLOOKUP(CONCATENATE(B10&*),A1:B6,2,FALSE)

4.

Luke M says:
November 1, 2010 at 3:08 pm
@dan I
CONCATENATE function is a waste of characters (and since we all hate having to work harder than we
have to), especially since you took the shorter (and faster) method of concatenating the words
yourself. A shorter, but exact same re-written function would be:
=VLOOKUP(B10&*,A1:B6,2,)

5.

Gregory says:
November 1, 2010 at 3:56 pm
If you use the formula =VLOOKUP(ja*,B5:E17,3,FALSE) there are 5 possible answers, but the formula
returns 2133, which is the first one encountered. Hence using a wildcard with the VLOOKUP formula
isnt something Ive used in the past, mainly because with a large data set you cant be sure of the
result.