Advanced-excel-functions-advanced-excel-math-trignometric-aggregate-function
提供:Dev Guides
数学および三角法のAGGREGATE関数
説明
リストまたはデータベースの集計を返します。 AGGREGATEファンクションは、非表示の行とエラー値を無視するオプションを使用して、リストまたはデータベースに異なる集計関数を適用できます。
AGGREGATE関数には2つの異なる形式があります-
- 参照形式
- 配列フォーマット
参照形式
構文
AGGREGATE (function_num, options, ref1, [ref2] …)
引数
Argument | Description | Required/Optional |
---|---|---|
Function_num | A number 1 to 19 that specifies which function to use. Look at the Function_num Table given below to know the Functions. | Required |
options | A number, between 0 and 7, that determines which values to be ignored in the calculation of the Function. Look at the options Table given below to know the values. | Required |
ref1 | The first numeric argument for functions that take multiple numeric arguments for which you want the aggregate value. | Required |
ref2 … | Numeric arguments 2 to 253 for which you want the aggregate value. | Optional |
配列フォーマット
構文
AGGREGATE (function_num, options, array, [k])
引数
Argument | Description | Required/Optional |
---|---|---|
Function_num |
A number 1 to 19 that specifies which function to use. 以下に示すFunction_numテーブルを見て、関数を確認してください。 |
Required |
options |
A number, between 0 and 7, that determines which values to be ignored in the calculation of the Function. 値を確認するには、以下のオプション表をご覧ください。 |
Required |
array | An array, an array formula, or a reference to a range of cells for which you want the aggregate value. | Required |
k |
An integer that denotes the position in the array for Functions that require this additional argument. Required for the 'Large', 'Small', 'Percentile' and 'Quartile' Functions 以下の引数kの表を見てください。 |
Optional |
Function_numテーブル
Function_num | Function |
---|---|
1 | AVERAGE |
2 | COUNT |
3 | COUNTA |
4 | MAX |
5 | MIN |
6 | PRODUCT |
7 | STDEV.S |
8 | STDEV.P |
9 | SUM |
10 | VAR.S |
11 | VAR.P |
12 | MEDIAN |
13 | MODE.SNGL |
14 | LARGE |
15 | SMALL |
16 | PERCENTILE.INC |
17 | QUARTILE.INC |
18 | PERCENTILE.EXC |
19 | QUARTILE.EXC |
引数kテーブル
Function | Meaning of k |
---|---|
Large | Return the kth largest value |
Small | Return the kth smallest value |
Percentile.Inc Percentile.Exc |
Return the kth percentile |
Quartile.Inc Quartile.Exc |
Return the kth quartile |
ノート
- ワークシートのセルにAGGREGATE関数を入力すると、function_num引数を入力するとすぐに、引数として使用できるすべての関数のリストが表示されます。
- AGGREGATE関数は、データの列または垂直範囲用に設計されています。 データの行、または水平範囲用には設計されていません。 E.g. AGGREGATE(1、1、ref1)などのオプション1を使用して水平範囲を小計すると、列を非表示にしても集計の合計値には影響しませんが、垂直範囲の行を非表示にすると集計に影響します。
- function_num引数が1未満または19より大きい場合、AGGREGATEは#VALUE!を返します。 エラー。
- options引数が0未満または7より大きい場合、AGGREGATEは#VALUE!を返します。 エラー。
- 引数kが必要であるが提供されていない場合、つまり function_num引数が14〜19(「大」、「小」、「パーセンタイル」または「四分位」関数を示す)の場合、AGGREGATEは#VALUE!を返します。 エラー。
- 指定された引数のいずれかが非数値の場合、AGGREGATEは#VALUE!を返します。 エラー。
- 1つ以上の参照が3-D参照である場合、AGGREGATEは#VALUE!を返します。 エラー値
適用範囲
Excel 2010、Excel 2013、Excel 2016