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

109 lines
5.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>SUBTOTAL 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>SUBTOTAL Function</h1>
<p>The <b>SUBTOTAL</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#mathtrigonometry" onclick="onhyperlinkclick(this)">math and trigonometry functions</a>. The function is used to return a subtotal in a list or database.</p>
<h3>Syntax</h3>
<p><b><em>SUBTOTAL(function_num, ref1, [ref2], ...)</em></b></p>
<p>The <b>SUBTOTAL</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>function_num</em></b></td>
<td>A numeric value that specifies which function to use for the subtotal. The possible values are listed in the table below. For the <em>function_num</em> arguments 1 to 11, the <b>SUBTOTAL</b> function includes values of the rows that have been hidden manually. For the <em>function_num</em> arguments 101 to 111, the <b>SUBTOTAL</b> function ignores values of the rows that have been hidden manually. Values hidden by the filter are always excluded.</td>
</tr>
<tr>
<td><b><em>ref1/2/n</em></b></td>
<td>Up to 255 references to the cell range containing the values for which you want the subtotal.</td>
</tr>
</table>
<p>The <b><em>function_num</em></b> argument can be one of the following:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4"><b>function-number (includes hidden values)</b></th>
<th style="background-color: #f4f4f4"><b>function-number (excludes hidden values)</b></th>
<th style="background-color: #f4f4f4"><b>Function</b></th>
</tr>
<tr>
<td><b><em>1</em></b></td>
<td>101</td>
<td><a href="../Functions/average.htm" onclick="onhyperlinkclick(this)">AVERAGE</a></td>
</tr>
<tr>
<td><b><em>2</em></b></td>
<td>102</td>
<td><a href="../Functions/count.htm" onclick="onhyperlinkclick(this)">COUNT</a></td>
</tr>
<tr>
<td><b><em>3</em></b></td>
<td>103</td>
<td><a href="../Functions/counta.htm" onclick="onhyperlinkclick(this)">COUNTA</a></td>
</tr>
<tr>
<td><b><em>4</em></b></td>
<td>104</td>
<td><a href="../Functions/max.htm" onclick="onhyperlinkclick(this)">MAX</a></td>
</tr>
<tr>
<td><b><em>5</em></b></td>
<td>105</td>
<td><a href="../Functions/min.htm" onclick="onhyperlinkclick(this)">MIN</a></td>
</tr>
<tr>
<td><b><em>6</em></b></td>
<td>106</td>
<td><a href="../Functions/product.htm" onclick="onhyperlinkclick(this)">PRODUCT</a></td>
</tr>
<tr>
<td><b><em>7</em></b></td>
<td>107</td>
<td><a href="../Functions/stdev.htm" onclick="onhyperlinkclick(this)">STDEV</a></td>
</tr>
<tr>
<td><b><em>8</em></b></td>
<td>108</td>
<td><a href="../Functions/stdevp.htm" onclick="onhyperlinkclick(this)">STDEVP</a></td>
</tr>
<tr>
<td><b><em>9</em></b></td>
<td>109</td>
<td><a href="../Functions/sum.htm" onclick="onhyperlinkclick(this)">SUM</a></td>
</tr>
<tr>
<td><b><em>10</em></b></td>
<td>110</td>
<td><a href="../Functions/var.htm" onclick="onhyperlinkclick(this)">VAR</a></td>
</tr>
<tr>
<td><b><em>11</em></b></td>
<td>111</td>
<td><a href="../Functions/varp.htm" onclick="onhyperlinkclick(this)">VARP</a></td>
</tr>
</table>
<h3>Notes</h3>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>SUBTOTAL</b> function.</p>
<h3>Examples</h3>
<p>The figure below displays the result returned by the <b>SUBTOTAL</b> function.</p>
<p><img alt="SUBTOTAL Function" src="../images/subtotal.png" /></p>
<p>The figure below displays the result returned by the <b>SUBTOTAL</b> function when several rows are hidden.</p>
<p><img alt="SUBTOTAL Function" src="../images/subtotal2.png" /></p>
</div>
</body>
</html>