<p>The <b>XLOOKUP</b> function is one of the lookup and reference functions. It is used to perform the search for a specific item by row both horizontally and vertically. The result is returned in another column and can accommodate two-dimensional datasets.</p>
<pstyle="text-indent: 50px;"><b><em>lookup_array</em></b>is an array or range to search in.</p>
<pstyle="text-indent: 50px;"><b><em>return_array</em></b>is an array or range to return the results to.</p>
<pstyle="text-indent: 50px;"><b><em>if_not_found</em></b>is an optional argument. If there is no search result, the argument returns the text stated in [if_not_found]. In case the text is not specified, the “N/A” is returned.</p>
<li><b><em>1</em></b> starts a search at the first item (set by default).</li>
<li><b><em>-1</em></b> starts a reverse search, i.e. at the last item.</li>
<li><b><em>2</em></b> starts a binary search with the <b><em>lookup_array</em></b> sorted in ascending order. If not sorted, invalid results will be returned.</li>
<li><b><em>-2</em></b> starts a binary search with the <b><em>lookup_array</em></b> sorted in descending order. If not sorted, invalid results will be returned.</li>
</ul>
</p>
<pclass="note">
Wildcard characters include the question mark (?) that matches a single character and the asterisk (*) that matches multiple characters. If you want to find a question mark or asterisk, type a tilde (~) before the character.
</p>
<p>To apply the <b>XLOOKUP</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>