How do I use AGGREGATE in Excel?
Use AGGREGATE when you want to summarize data while ignoring errors or hidden rows. Enter Function number, Options, Target range in that order, then add optional arguments when needed.
Performs aggregate calculations with ignore options.
AGGREGATE(function_num, options, array, [k])function_num
RequiredAGGREGATE operation code: 1=AVERAGE, 2=COUNT, 3=COUNTA, 4=MAX, 5=MIN, 6=PRODUCT, 7=STDEV.S, 8=STDEV.P, 9=SUM, 10=VAR.S, 11=VAR.P, 12=MEDIAN, 13=MODE.SNGL, 14=LARGE, 15=SMALL, 16=PERCENTILE.INC, 17=QUARTILE.INC, 18=PERCENTILE.EXC, 19=QUARTILE.EXC.
options
RequiredIgnore options: 0/omitted=ignore nested SUBTOTAL/AGGREGATE, 1=ignore hidden rows + nested, 2=ignore errors + nested, 3=ignore hidden rows + errors + nested, 4=ignore nothing, 5=ignore hidden rows, 6=ignore errors, 7=ignore hidden rows + errors.
array
RequiredSpecify a reference range. You can drag or click start/end cells.
k
OptionalEnter a numeric value.
Use AGGREGATE to aggregate Sales in column D with 9 (SUM). You can set ranges by dragging from the start cell to the end cell in the same argument field.
| # | AProduct ID | BProduct Name | CCategory | DSales |
|---|---|---|---|---|
| 2 | P001 | Apple | Food | 1200 |
| 3 | P002 | Banana | Food | 980 |
| 4 | P003 | Notebook | Stationery | 450 |
| 5 | P004 | Pen | Stationery | 300 |
| 6 | P005 | Grapes | Food | 1500 |
| 7 | P006 | Ruler | Stationery | 250 |
| 8 | P007 | Peach | Food | 860 |
How to Use (Formula)
=AGGREGATE(9, 0, D2:D8)Result
5540
Use AGGREGATE when you want to summarize data while ignoring errors or hidden rows. Enter Function number, Options, Target range in that order, then add optional arguments when needed.
Use the "Start Function Practice" button to jump straight into AGGREGATE drills.
The main arguments are Function number, Options, Target range, Rank. Start with the required ones, then add optional arguments if needed.