The Big Problem: Why Standard SUM & SUBTOTAL Break
In real-world data analysis, datasets are rarely clean. Formulas like VLOOKUP or division calculations often leave #N/A or #DIV/0! error cells.
Formula Crash (#DIV/0!)
If even ONE single cell in your range contains #DIV/0! or #N/A, standard SUM and SUBTOTAL immediately crash and return an error!
Gracefully Bypasses Errors
AGGREGATE ignores all error cells and calculates the exact total of valid numbers without breaking your dashboard.
Formula Syntax & Dual Forms
AGGREGATE comes in two flexible forms depending on the function type:
=AGGREGATE(function_num, options, ref1, [ref2], ...)=AGGREGATE(function_num, options, array, k)Interactive Error Bypass Simulator
The dataset below contains intentional #DIV/0! and #N/A errors. Select different options to see how AGGREGATE saves your report!
| Cell Label | Category | Cell Value | Evaluation Status |
|---|---|---|---|
| MacBook Pro Sales | Hardware | $1800 | ✅ Included in Calculation |
| Division Margin Discount | Software | #DIV/0! | 🛡️ Ignored by Option 6 |
| 4K Monitor Sales | Hardware | $650 | ✅ Included in Calculation |
| Missing Inventory Stock | Hardware | #N/A | 🛡️ Ignored by Option 6 |
| Wireless Mouse Sales | Hardware | $150 | ✅ Included in Calculation |
| Corrupted Currency Cell | Other | #VALUE! | 🛡️ Ignored by Option 6 |
| Standing Desk Sales | Furniture | $400 | ✅ Included in Calculation |
| Ergonomic Chair Sales | Furniture | $250 | ✅ Included in Calculation |
19 Supported Functions List
AGGREGATE supports 19 calculation functions — far more than SUBTOTAL!
Options Codes Reference Table (0 to 7)
| Option Code | What it Ignores | Best Used For |
|---|---|---|
| Option 0 | Ignore nested SUBTOTAL and AGGREGATE functions | Standard Option |
| Option 1 | Ignore hidden rows, nested SUBTOTAL and AGGREGATE | Standard Option |
| Option 2 | Ignore error values, nested SUBTOTAL and AGGREGATE | Standard Option |
| Option 3 | Ignore hidden rows, error values, nested SUBTOTAL and AGGREGATE | ⭐ Best for Filtered & Error Tables |
| Option 4 | Ignore nothing (Standard calculation) | Standard (Ignores nothing) |
| Option 5 | Ignore hidden rows only | Standard Option |
| Option 6 | Ignore error values only (MOST POPULAR!) | ⭐ Most Popular for Error Bypass |
| Option 7 | Ignore hidden rows and error values | Standard Option |