This is a new function in Excel 2010 that is quite flexible, since it combines several functions into a single function. Depending on the value of function num, the aggregate function can be utilised as SUM, COUNT, MIN, or AVERAGE.
=AGGREGATE(9,0,A1:A2) returns the SUM of the cells A1 and A2, whereas =AGGREGATE(1,0,A1:A2) returns the AVERAGE.
This function is available in two versions. The Array form and the Reference form are two different types of data structures.
Syntax:
AGGREGATE(function_num, options, ref1, [ref2], …)
Function_num Table:
Function_num | Function_Syntax Form | |
1 | AVERAGE | Reference |
2 | COUNT | Reference |
3 | COUNTA | Reference |
4 | MAX | Reference |
5 | MIN | Reference |
6 | PRODUCT | Reference |
7 | STDEV.S | Reference |
8 | STDEV.P | Reference |
9 | SUM | Reference |
10 | VAR.S | Reference |
11 | VAR.P | Reference |
12 | MEDIAN | Reference |
13 | MODE.SNGL | Reference |
Ask Your Query