mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 14:36:49 +08:00
45 lines
2.3 KiB
HTML
45 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CHOOSE 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>CHOOSE Function</h1>
|
|
<p>The <b>CHOOSE</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 value from a list of values based on a specified index (position).</p>
|
|
<h3>Syntax</h3>
|
|
<p><b><em>CHOOSE(index_num, value1, [value2], ...)</em></b></p>
|
|
<p>The <b>CHOOSE</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>index_num</em></b></td>
|
|
<td>The position of the value in the list of values, a numeric value greater than or equal to 1 but less than the number of the number of values in the list of values.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b><em>value1/2/n</em></b></td>
|
|
<td>The list of values or the selected range of cells you need to analyze.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Notes</h3>
|
|
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>CHOOSE</b> function.</p>
|
|
|
|
<h3>Examples</h3>
|
|
<p>The figure below displays the result returned by the <b>CHOOSE</b> function.</p>
|
|
<p><img alt="CHOOSE Function" src="../images/choose.png" /></p>
|
|
</div>
|
|
</body>
|
|
</html> |