SUBTOTAL Function in Excel: Syntax, Examples & Practice
Learn the Excel SUBTOTAL function: Calculates a subtotal, with options to ignore filtered rows. Try focused practice and download a free workbook.
Syntax
=SUBTOTAL(function_num, ref1, [ref2], …)
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Worked example
| Row | A: Employee | B: Value | C: Target | D: Status |
|---|---|---|---|---|
| 2 | Amit | 45000 | 50000 | Active |
| 3 | Priya | 62000 | 60000 | Active |
| 4 | Ravi | 38000 | 45000 | Closed |
| 5 | Neha | 55000 | 55000 | Active |
=SUBTOTAL(9,B2:B5)
Expected result: 200000
Value and Target are numbers; Status is separate text. Statistical formulas use the four visible Value observations.
Professional use
Filtered MIS reports and dynamic summaries.
Practice SUBTOTAL · Download practice .xlsx
Apply your skills
Explore MIS and finance projects
Questions and answers
How can I practise SUBTOTAL?
Use the focused ten-question SUBTOTAL lab, then download its workbook for ten additional function-specific tasks and an answer key. Core learning works without an account.
Which Excel version supports SUBTOTAL?
Check the function documentation for your Excel version and platform. The browser simulator implements selected behavior and does not reproduce every Excel feature.
Does the browser simulator replace Microsoft Excel?
No. It supports a selected set of formula behavior for practice. Native workbook recalculation, full function compatibility, PivotTables and external data features must be checked in your own Excel installation.
Interactive practice runs in your browser.