To look something up when you only have part of the value — “Cedar” should find “Cedar Inc.” — use wildcards. Wrapping the lookup value in * tells VLOOKUP or XLOOKUP to match on a fragment.
* wildcards around E2 mean “any text before and after,” so a fragment matches the full name.
The example
Look up the partial name “Cedar.”
| A | B | D | E | ||
|---|---|---|---|---|---|
| 1 | Company | Owner | Search | Owner | |
| 2 | Acme Corp | Ana | Cedar | Cy | |
| 3 | Bolt LLC | Ben | |||
| 4 | Cedar Inc | Cy |
The formula
The owner of the company containing “Cedar”:
How it works
Wildcards turn a fragment into a match:
"*"&E2&"*"builds the search string"*Cedar*"— the asterisks mean any characters can surround the fragment.- VLOOKUP with
FALSE(exact match) honors wildcards, so it finds “Cedar Inc.” - It returns the value from column 2 on that row —
Cy. - Use
?to match exactly one unknown character, e.g."A?me".
XLOOKUP needs wildcard mode on. Set match_mode to 2: =XLOOKUP("*"&E2&"*", A2:A8, B2:B8, , 2). Unlike VLOOKUP, XLOOKUP won’t use wildcards unless you ask.
Try it: interactive demo
Type part of a company name.
Variations
XLOOKUP wildcard mode
Turn on match_mode 2:
Starts with / ends with
Anchor the wildcard:
Match a literal asterisk
Escape it with a tilde:
Pitfalls & errors
XLOOKUP ignores wildcards by default. You must set match_mode to 2; otherwise it looks for the literal text including the asterisks.
First match wins. If a fragment matches several rows, you get the first one. Narrow the fragment or add criteria.
VLOOKUP must use FALSE. Wildcards only work with exact-match mode; approximate mode (TRUE) ignores them.
Practice workbook
Frequently asked questions
How do I do a partial-match lookup in Excel?
How do I make XLOOKUP match partial text?
Why isn't my wildcard lookup working?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class