In XLOOKUP and XMATCH wildcard search does not work together with binary search

Regina Henschel 286 Reputation points
2024-04-20T21:10:25.9433333+00:00

In a spreadsheet with

Name Amount
Carol 90
Christel 43
Christian 85
Christopher 27

the formulas =XLOOKUP("Christ*";A2:A6;B2:B6;;2;1) =XMATCH("Christ*";A2:A6;2;1) work. But formulas =XLOOKUP("Christ*";A2:A6;B2:B6;;2;2) =XMATCH("Christ*";A2:A6;2;2) are not accepted.

There is no need to exclude wildcard match from binary search and such restriction is not documented. I think it is a bug in Excel 365.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua 18,065 Reputation points Moderator
    2024-04-22T02:39:49.4+00:00

    Hi @Regina Henschel

    Here is a similar thread: xlookup with binary search.

    Please do not do a Binary Search with a wildcard option.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.