SUBTOTAL
returns subtotal using specified function · from excel · excel: not yet compared · sheets: not yet compared
signature
SUBTOTAL(function_num, ref…)
returns: number
| argument | required |
|---|---|
| function_num | required |
| ref… | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| A | |
|---|---|
| 1 | 10 |
| 2 | 20 |
| 3 | 30 |
| 4 | 40 |
| 5 | 50 |
fx
=SUBTOTAL(9, A1:A10) 150