AGGREGATE
Description
Runs the aggregation evaluation that you specify. Optionally, you can ignore certain types of values. This function is intended for use on columns of data (vertical ranges), not rows of data.
Syntax
AGGREGATE(
function_num
, [ options
], ref1
, [ ref2
]) - function_num: A number from 1 to 19 that specifies the aggregation function.NumberFunction1AVERAGE2COUNT3COUNTA4MAX5MIN6PRODUCT7STDEV.S8STDEV.P9SUM11VAR.P12MEDIAN13MODE.SNGL14LARGE15SMALL16PERCENTILE.INC17QUARTILE.INC18PERCENTILE.EXC19QUARTILE.EXC
- options: A number from 0-7 that specifies which values in the range to ignore. If you omit the argument, the function uses 0.NumberAction0Ignore nested SUBTOTAL and AGGREGATE functions1Ignore hidden rows, nested SUBTOTAL and AGGREGATE functions2Ignore error values, nested SUBTOTAL and AGGREGATE functions3Ignore hidden rows, error values, nested SUBTOTAL and AGGREGATE functions4Ignore nothing5Ignore hidden rows6Ignore error values7Ignore hidden rows and error values
- ref1: The first argument; it can be a number, array, an array formula, or a reference to a range of cells.
- ref2: One or more additional arguments. These functions require a ref2 argument: LARGE, SMALL, PERCENTILE.INC, QUARTILE.INC, PERCENTILE.EXC, QUARTILE.EXC.
Notes
If the array argument includes a calculation, the function won't ignore hidden rows, nested subtotals, or nested aggregates.