FormulaCraft

How to use VLOOKUP with a wildcard in Excel and Google Sheets

Topic:VLOOKUP
Excel & Google Sheets
=VLOOKUP("*"&A2&"*",$C$2:$D$5,2,FALSE)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify the partial text to search for, e.g. the word in A2.
  2. 2Build the wildcard pattern by surrounding the search term with asterisks: "*"&A2&"*" matches anywhere in the cell. Use A2&"*" to match only at the start.
  3. 3Write the full formula: =VLOOKUP("*"&A2&"*",$C$2:$D$100,2,FALSE). The fourth argument must be FALSE (exact match) for wildcards to work.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if multiple rows match the wildcard pattern?

VLOOKUP returns only the first match it finds from the top of the table. If you need all matches, use FILTER or a helper column with SEARCH.

More on VLOOKUP

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: