SUBTOTAL
Supported, behaves as documentedCategory: Math and trigonometry · Last tested 2026-08-06
Real, executed compatibility results for the SUBTOTAL function across Microsoft Excel, Google Sheets, and LibreOffice Calc — verified by actually running it. Syntax and links to each vendor’s official documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel | Yes | Not yet | n/a |
| Google Sheets | Yes | Not yet | n/a |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-06) | Supported, behaves as documented |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when SUBTOTAL’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 25.2.0.3 | Supported, behaves as documented | 2026-07-24 |
| 25.8.7.3 | Supported, behaves as documented | 2026-08-06 |
Executed test cases
LibreOffice Calc 25.8.7.3 (tested 2026-08-06)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =SUBTOTAL(9,A1:A4) | Function code 9 = SUM over visible rows (none hidden here) | 100 | 100 | Matched |
| =SUBTOTAL(3,A1:A4) | Function code 3 = COUNTA | 4 | 4 | Matched |
| =SUBTOTAL(9,A1:A5) | A5 contains its own SUBTOTAL over A1:A4; the outer SUBTOTAL must skip it (no double-count), so the answer is 100, not 200 | 100 | 100 | Matched |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Related how-to recipes
- How to count cells by color (and why formulas can't see color)
- How to count only visible rows after filtering
- How to sum only the filtered (visible) rows