<metaname="description"content="The LOOKUP function is one of the lookup and reference functions. Learn how to use the LOOKUP function in Excel sheets and compatible files with ONLYOFFICE."/>
<p>The <b>LOOKUP</b> function is one of the lookup and reference functions. It is used to return a value from a selected range (row or column containing the data in ascending order).</p>
<pstyle="text-indent: 50px;"><b><em>lookup-value</em></b> is a value to search for.</p>
<pstyle="text-indent: 50px;"><b><em>lookup-vector</em></b> is a single row or column containing data sorted in ascending order.</p>
<pstyle="text-indent: 50px;"><b><em>lookup-result</em></b> is a single row or column of data that is the same size as the <b><em>lookup-vector</em></b>.</p>
<p>The function searches for the <b><em>lookup-value</em></b> in the <b><em>lookup-vector</em></b> and returns the value from the same position in the <b><em>lookup-result</em></b>.</p>
<pclass="note">If the <b>lookup-value</b> is smaller than all of the values in the <b>lookup-vector</b>, the function will return the <b>#N/A</b> error. If there is not a value that strictly matches the <b>lookup-value</b>, the function chooses the largest value in the <b>lookup-vector</b> that is less than or equal to the value.</p>