web-apps/apps/spreadsheeteditor/main/resources/help/en/Functions/vlookup.htm

37 lines
2.7 KiB
HTML
Raw Normal View History

2016-03-11 00:48:53 +00:00
<!DOCTYPE html>
<html>
<head>
<title>VLOOKUP Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
</head>
<body>
<div class="mainpart">
<h1>VLOOKUP Function</h1>
<p>The <b>VLOOKUP</b> function is one of the lookup and reference functions. It is used to perform the vertical search for a value in the left-most column of a table or an array and return the value in the same row based on a specified column index number.</p>
<p>The <b>VLOOKUP</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>VLOOKUP (lookup-value, table-array, col-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> is two or more columns containing data sorted in ascending order.</p>
<p style="text-indent: 50px;"><b><em>col-index-num</em></b> is a column number in the <b><em>table-array</em></b>, a numeric value greater than or equal to 1 but less than the number of columns in the <b>table-array</b></p>
<p style="text-indent: 50px;"><b><em>range-lookup-flag</em></b> is a logical value TRUE or FALSE. It is an optional argument. Enter FALSE to find an exact match. Enter TRUE or omit this argument 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>.
<p class="note"><b>Note</b>: 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>
<p>To apply the <b>VLOOKUP</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>
2017-09-20 08:31:59 +00:00
<li>click the <b>Insert function</b> <img alt="Insert function icon" src="../images/insertfunction.png" /> icon situated at the top toolbar,
2016-03-11 00:48:53 +00:00
<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>VLOOKUP</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 style="text-indent: 150px;"><img alt="VLOOKUP Function" src="../images/vlookup.png" /></p>
</div>
</body>
</html>