189 lines
10 KiB
HTML
189 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>AGGREGATE 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>AGGREGATE Function</h1>
|
|
<p>The <b>AGGREGATE</b> function is one of the math and trigonometry functions. The function is used to return an aggregate in a list or database. The <b>AGGREGATE</b> function can apply different aggregate functions to a list or database with the option to ignore hidden rows and error values.</p>
|
|
<p>The <b>AGGREGATE</b> function syntax is:</p>
|
|
<p style="text-indent: 150px;"><b><em>AGGREGATE(function_num, options, ref1 [, ref2], ...)</em></b></p>
|
|
<p><em>where</em></p>
|
|
<p style="text-indent: 50px;"><b><em>function_num</em></b> is a numeric value that specifies which function to use. The possible values are listed in the table below.</p>
|
|
<table style="width: 40%">
|
|
<tr>
|
|
<td><b>function_num<br /></b></td>
|
|
<td><b>Function</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>1</td>
|
|
<td><a href="../Functions/average.htm" onclick="onhyperlinkclick(this)">AVERAGE</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>2</td>
|
|
<td><a href="../Functions/count.htm" onclick="onhyperlinkclick(this)">COUNT</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>3</td>
|
|
<td><a href="../Functions/counta.htm" onclick="onhyperlinkclick(this)">COUNTA</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>4</td>
|
|
<td><a href="../Functions/max.htm" onclick="onhyperlinkclick(this)">MAX</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>5</td>
|
|
<td><a href="../Functions/min.htm" onclick="onhyperlinkclick(this)">MIN</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
<td><a href="../Functions/product.htm" onclick="onhyperlinkclick(this)">PRODUCT</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>7</td>
|
|
<td><a href="../Functions/stdev-s.htm" onclick="onhyperlinkclick(this)">STDEV.S</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>8</td>
|
|
<td><a href="../Functions/stdev-p.htm" onclick="onhyperlinkclick(this)">STDEV.P</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>9</td>
|
|
<td><a href="../Functions/sum.htm" onclick="onhyperlinkclick(this)">SUM</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>10</td>
|
|
<td><a href="../Functions/var-s.htm" onclick="onhyperlinkclick(this)">VAR.S</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>11</td>
|
|
<td><a href="../Functions/var-p.htm" onclick="onhyperlinkclick(this)">VAR.P</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>12</td>
|
|
<td><a href="../Functions/median.htm" onclick="onhyperlinkclick(this)">MEDIAN</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>13</td>
|
|
<td><a href="../Functions/mode-sngl.htm" onclick="onhyperlinkclick(this)">MODE.SNGL</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>14</td>
|
|
<td><a href="../Functions/large.htm" onclick="onhyperlinkclick(this)">LARGE</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>15</td>
|
|
<td><a href="../Functions/small.htm" onclick="onhyperlinkclick(this)">SMALL</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>16</td>
|
|
<td><a href="../Functions/percentile-inc.htm" onclick="onhyperlinkclick(this)">PERCENTILE.INC</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>17</td>
|
|
<td><a href="../Functions/quartile-inc.htm" onclick="onhyperlinkclick(this)">QUARTILE.INC</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>18</td>
|
|
<td><a href="../Functions/percentile-exc.htm" onclick="onhyperlinkclick(this)">PERCENTILE.EXC</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>19</td>
|
|
<td><a href="../Functions/quartile-exc.htm" onclick="onhyperlinkclick(this)">QUARTILE.EXC</a></td>
|
|
</tr>
|
|
</table>
|
|
<p style="text-indent: 50px;"><b><em>options</em></b> is a numeric value that specifies which values should be ignored. The possible values are listed in the table below.</p>
|
|
<table style="width: 40%">
|
|
<tr>
|
|
<td><b>Numeric value<br /></b></td>
|
|
<td><b>Behavior</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>0 or omitted</td>
|
|
<td>Ignore nested <a href="../Functions/subtotal.htm" onclick="onhyperlinkclick(this)">SUBTOTAL</a> and AGGREGATE functions</td>
|
|
</tr>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>Ignore hidden rows, nested <a href="../Functions/subtotal.htm" onclick="onhyperlinkclick(this)">SUBTOTAL</a> and AGGREGATE functions</td>
|
|
</tr>
|
|
<tr>
|
|
<td>2</td>
|
|
<td>Ignore error values, nested <a href="../Functions/subtotal.htm" onclick="onhyperlinkclick(this)">SUBTOTAL</a> and AGGREGATE functions</td>
|
|
</tr>
|
|
<tr>
|
|
<td>3</td>
|
|
<td>Ignore hidden rows, error values, nested <a href="../Functions/subtotal.htm" onclick="onhyperlinkclick(this)">SUBTOTAL</a> and AGGREGATE functions</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4</td>
|
|
<td>Ignore nothing</td>
|
|
</tr>
|
|
<tr>
|
|
<td>5</td>
|
|
<td>Ignore hidden rows</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td>
|
|
<td>Ignore error values</td>
|
|
</tr>
|
|
<tr>
|
|
<td>7</td>
|
|
<td>Ignore hidden rows and error values</td>
|
|
</tr>
|
|
</table>
|
|
<p style="text-indent: 50px;"><b><em>ref1(2)</em></b> is up to 253 numeric values or a reference to the cell range containing the values for which you want the aggregate value.</p>
|
|
<p class="note"><b>Note:</b> if you want to use one of the following functions: <a href="../Functions/large.htm" onclick="onhyperlinkclick(this)">LARGE</a>, <a href="../Functions/small.htm" onclick="onhyperlinkclick(this)">SMALL</a>, <a href="../Functions/percentile-inc.htm" onclick="onhyperlinkclick(this)">PERCENTILE.INC</a>, <a href="../Functions/quartile-inc.htm" onclick="onhyperlinkclick(this)">QUARTILE.INC</a>, <a href="../Functions/percentile-exc.htm" onclick="onhyperlinkclick(this)">PERCENTILE.EXC</a>, or <a href="../Functions/quartile-exc.htm" onclick="onhyperlinkclick(this)">QUARTILE.EXC</a>, <b><em>ref1</em></b> must be a reference to the cell range and <b><em>ref2</em></b> must be the second argument that is required for these functions (<b><em>k</em></b> or <b><em>quart</em></b>).</p>
|
|
<table style="width: 40%">
|
|
<tr>
|
|
<td><b>Function<br /></b></td>
|
|
<td><b>Syntax</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="../Functions/large.htm" onclick="onhyperlinkclick(this)">LARGE</a></td>
|
|
<td>LARGE(array, k)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="../Functions/small.htm" onclick="onhyperlinkclick(this)">SMALL</a></td>
|
|
<td>SMALL(array, k)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="../Functions/percentile-inc.htm" onclick="onhyperlinkclick(this)">PERCENTILE.INC</a></td>
|
|
<td>PERCENTILE.INC(array, k)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="../Functions/quartile-inc.htm" onclick="onhyperlinkclick(this)">QUARTILE.INC</a></td>
|
|
<td>QUARTILE.INC(array, quart)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="../Functions/percentile-exc.htm" onclick="onhyperlinkclick(this)">PERCENTILE.EXC</a></td>
|
|
<td>PERCENTILE.EXC(array, k)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="../Functions/quartile-exc.htm" onclick="onhyperlinkclick(this)">QUARTILE.EXC</a></td>
|
|
<td>QUARTILE.EXC(array, quart)</td>
|
|
</tr>
|
|
</table>
|
|
<p>To apply the <b>AGGREGATE</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>Math and trigonometry</b> function group from the list,</li>
|
|
<li>click the <b>AGGREGATE</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>The figure below displays the result returned by the <b>AGGREGATE</b> function when the <b>SUM</b> function is applied.</p>
|
|
<p style="text-indent: 150px;"><img alt="AGGREGATE Function" src="../images/aggregate.png" /></p>
|
|
<p>The figure below displays the result returned by the <b>AGGREGATE</b> function when the <b>LARGE</b> function is applied, <b><em>ref1</em></b> is a reference to the cell range, and <b><em>k</em></b> is equal to 2. The function returns the second largest value in cells A1-A4.</p>
|
|
<p style="text-indent: 150px;"><img alt="AGGREGATE Function" src="../images/aggregate2.png" /></p>
|
|
</div>
|
|
</body>
|
|
</html> |