Home › Functions › Math & Trig › SUBTOTAL
fx
SUBTOTAL
Math & Trig  ·  Since: Excel 2003  ·  9 languages

Returns a subtotal in a list or database. It is generally easier to create a list with subtotals by using the Subtotal command in the Outline group on the Data tab in the Excel desktop application. Once the subtotal list is created, you can modify it by editing the SUBTOTAL function.

🌐 Translations

English SUBTOTAL
Deutsch TEILERGEBNIS
Français SOUS.TOTAL
Español SUBTOTALES
Italiano SUBTOTALE
Português SUBTOTAL
Nederlands SUBTOTAAL
Polski SUMY.CZĘŚCIOWE
Русский ПРОМЕЖУТОЧНЫЕ.ИТОГИ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

SUBTOTAL(function_num,ref1,[ref2],...)

Arguments

function_num (required) — The number 1-11 or 101-111 that specifies the function to use for the subtotal. 1-11 includes manually-hidden rows, while 101-111 excludes them; filtered-out cells are always excluded.
ref1 (required) — The first named range or reference for which you want the subtotal.
ref2 (optional) — Named ranges or references 2 to 254 for which you want the subtotal.

▶ Examples

=SUBTOTAL(9,A2:A5)
=SUBTOTAL(1,A2:A5)

Related functions

Copied to clipboard