⌨ Syntax
AGGREGATE(function_num,options,ref1,[ref2],…)
Arguments
function_num
(required)
— A number 1 to 19 that specifies which function to use.
options
(required)
— A numerical value that determines which values to ignore in the evaluation range for the function. Note The function will not ignore hidden rows, nested subtotals or nested aggregates if the array argument includes a calculation, for example: =AGGREGATE(14,3,A1:A100*(A1:A100>0),1)
ref1
(required)
— The first numeric argument for functions that take multiple numeric arguments for which you want the aggregate value.
ref2
(optional)
— Numeric arguments 2 to 253 for which you want the aggregate value. For functions that take an array, ref1 is an array, an array formula, or a reference to a range of cells for which you want the aggregate value. Ref2 is a second argument that is required for certain functions. The following functions require a ref2 argument:
▶ Examples
=AGGREGATE(4,6,A1:A11)
=AGGREGATE(15,6,A1:A11)
=AGGREGATE(14,6,A1:A11,3)