
MathLevel: ExpertAvailable in: Excel 2010+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- Related functions
AGGREGATE is like SUBTOTAL with 19 functions and extra options — most usefully, ignoring error values such as #N/A in the range.
Syntax
=AGGREGATE(function_num, options, ref1, [k])
| Argument |
What it means |
function_num |
9 = SUM, 1 = AVERAGE, 14 = LARGE, 15 = SMALL, and more. |
options |
6 = ignore errors, 5 = ignore hidden rows, 7 = both. |
k |
Needed for LARGE/SMALL-type functions. |
Examples
Example 1
=AGGREGATE(9, 6, E2:E500)
Sum a column that contains some #N/A values.
Example 2
=AGGREGATE(14, 6, E2:E500, 1)
Largest value, ignoring errors.
SUBTOTAL · IFERROR · LARGE
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong