<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>
<li>
click the <b>Insert function</b><imgalt="Insert function icon"src="../images/insertfunction.png"/> icon situated at the top toolbar,
<br/>or right-click within a selected cell and select the <b>Insert Function</b> option from the menu,
<br/>or click the <imgalt="Function icon"src="../images/function.png"/> icon situated at the formula bar,
</li>
<li>select the <b>Lookup and Reference</b> function group from the list,</li>