Is match with part of cell possible by a setting?

Regina Henschel 176 Reputation points

Does Excel have a setting so that there is a match in the functions XMATCH and XLOOKUP (and other such functions) even if the search string only partially matches the value in the lookup_array?

Example: Something so that ´XMATCH("Alex";$B$2:$B:$300)´ matches not only exact "Alex" but also "Alexia".

I know, that XMATCH("Alex*";$B$2:$B:$300;2) does this, but it cannot be combined with binary search, whereas XMATCH("Alex";$B$2:$B:$300;0;2) is possible.

OpenDocument Format as a global setting ´table:search-criteria-must-apply-to-whole-cell´ (true/false) for that.

A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,470 questions
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,687 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 23,906 Reputation points Microsoft Vendor


    For XLOOKUP have the [match_mode], the specify the match type:

    0 - Exact match. If none found, return #N/A. This is the default.

    -1 - Exact match. If none found, return the next smaller item.

    1 - Exact match. If none found, return the next larger item.

    2 - A wildcard match where *, ?, and ~ have special meaning.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.