Math and trigonometry

AGGREGATE

Run a selected calculation while optionally excluding hidden rows, errors or nested totals.

Syntax

=AGGREGATE(function_num, options, ref1, [ref2], …)

Worked example

Put 8, =NA() and 11 in B2:B4. Function 9 adds the values and option 6 skips the error.

=AGGREGATE(9,6,B2:B4)

Result 19

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor