Files
Maxim Kadushkin 035166509d Merge pull request #2755 from ONLYOFFICE/feature/update-lunr-without-kor
Feature/update lunr without kor
2023-12-21 16:25:39 +03:00

68 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>MATCH Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../../../../../../common/main/resources/help/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>MATCH Function</h1>
<p>The <b>MATCH</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#lookupreference" onclick="onhyperlinkclick(this)">lookup and reference functions</a>. It is used to return a relative position of a specified item in a range of cells.</p>
<h3>Syntax</h3>
<p><b><em>MATCH(lookup_value, lookup_array, [match_type])</em></b></p>
<p>The <b>MATCH</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4" width="150ch"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>lookup_value</em></b></td>
<td>A value in the <em><b>lookup_array</b></em> to search for. It can be a numeric, logical or text value, or a cell reference.</td>
</tr>
<tr>
<td><b><em>lookup_array</em></b></td>
<td>A single row or column you need to analyze.</td>
</tr>
<tr>
<td><b><em>match_type</em></b></td>
<td>A type of match. It's an optional argument. The possible values are listed in the table below.</td>
</tr>
</table>
<p>The <b><em>match_type</em></b> argument can be one of the following:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4"><b>Numeric value</b></th>
<th style="background-color: #f4f4f4"><b>Meaning</b></th>
</tr>
<tr>
<td><b><em>1 or omitted</em></b></td>
<td>The values must be sorted in ascending order. If the exact match is not found, the function will return the largest value that is less than <em><b>lookup_value</b></em>.</td>
</tr>
<tr>
<td><b><em>0</em></b></td>
<td>The values can be sorted in any order. If the exact match is not found, the function will return the #N/A error.</td>
</tr>
<tr>
<td><b><em>-1</em></b></td>
<td>The values must be sorted in descending order. If the exact match is not found, the function will return the smallest value that is greater than <em><b>lookup_value</b></em>.</td>
</tr>
</table>
<h3>Notes</h3>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>MATCH</b> function.</p>
<h3>Examples</h3>
<p>The figure below displays the result returned by the <b>MATCH</b> function.</p>
<p><img alt="MATCH Function" src="../images/match.png" /></p>
</div>
</body>
</html>