FormulaCraft

How to use XLOOKUP with wildcards in Excel and Google Sheets

Topic:XLOOKUP
Excel & Google Sheets
=XLOOKUP("*apple*", A2:A4, B2:B4, "Not Found")

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. 1Enter your lookup value with wildcards (* for any characters, ? for one character) in the formula.
  2. 2Specify the range where you want to search for the lookup value.
  3. 3Define the range from which you want to return the corresponding value.
  4. 4Provide an optional value to return if no match is found.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What are the wildcards used in XLOOKUP?

The asterisk (*) represents zero or more characters, while the question mark (?) represents a single character.

Does XLOOKUP support case-sensitive searches?

No, XLOOKUP performs case-insensitive searches by default. Use the match_mode argument set to -1 for case-sensitive matching.

Can I use multiple wildcards in a single lookup value?

Yes, you can combine multiple wildcards (* and ?) within a single lookup value to refine your search criteria.

More on XLOOKUP

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: