web-apps/apps/spreadsheeteditor/main/resources/help/en/Functions/hlookup.htm
2021-12-22 18:23:28 +03:00

43 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>HLOOKUP Function</title>
<meta charset="utf-8" />
<meta name="description" content="The HLOOKUP function is one of the lookup and reference functions. Learn how to use the HLOOKUP function in Excel sheets and compatible files with ONLYOFFICE." />
<link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>HLOOKUP Function</h1>
<p>The <b>HLOOKUP</b> function is one of the lookup and reference functions. It is used to perform the horizontal search for a value in the top row of a table or an array and return the value in the same column based on a specified row index number.</p>
<p>The <b>HLOOKUP</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>HLOOKUP (lookup-value, table-array, row-index-num[, [range-lookup-flag]])</em></b></p>
<p><em>where</em></p>
<p style="text-indent: 50px;"><b><em>lookup-value</em></b> is a value to search for.</p>
<p style="text-indent: 50px;"><b><em>table-array</em></b> are two or more rows containing data sorted in ascending order.</p>
<p style="text-indent: 50px;"><b><em>row-index-num</em></b> is a row number in the same column of the <b><em>table-array</em></b>, a numeric value greater than or equal to 1 but less than the number of rows in the <b>table-array</b>.</p>
<p style="text-indent: 50px;"><b><em>range-lookup-flag</em></b> is an optional argument. It is a logical value: TRUE or FALSE. Enter FALSE to find an exact match. Enter TRUE to find an approximate match, in this case if there is not a value that strictly matches the <b><em>lookup-value</em></b>, then the function will choose the next largest value less than the <b><em>lookup-value</em></b>. If this argument is absent, the function will find an approximate match.</p>
<p class="note">If the <b><em>range-lookup-flag</em></b> is set to FALSE, but no exact match is found, then the function will return the <b>#N/A</b> error.</p>
<h2>How to use HLOOKUP</h2>
<p>To apply the <b>HLOOKUP</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>
<li>click the <b>Insert function</b> <img alt="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 <img alt="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>
<li>click the <b>HLOOKUP</b> function,</li>
<li>enter the required arguments separating them by comma,</li>
<li>press the <b>Enter</b> button.</li>
</ol>
<p>The result will be displayed in the selected cell.</p>
<p><img class="gif" alt="hlookup function gif" src="../images/hlookup_function.gif" /></p>
</div>
</body>
</html>