SUBTOTAL in Collabora Office: Filtered Rows and Hidden Rows
Use SUBTOTAL in Collabora Office Calc 26.04 to sum, average and count visible records, with controlled hidden-row tests and nested-subtotal examples.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
SUBTOTAL summarizes a range while taking filtering into account. It can also exclude rows hidden manually, depending on the function number. This distinction is essential: hiding a row and filtering a row are different actions, even when both remove it from view.
The rules here come from the SUBTOTAL section of Collabora Office 26.04 Help. The tables below are independently calculated expected results, not screenshots or measurements from a native Collabora session.
Availability and version history
- First introduced: not established by the official evidence reviewed.
- Current documented status: supported in the Collabora Office Calc 26.04 desktop Help set, checked October 13, 2026.
- Last supported version: no documented endpoint. Support in 26.04 is not a final-version claim.
- Platform and edition: this guide uses desktop Calc terminology. Verify the server/core version and controls in Collabora Online or mobile separately.
- Native testing: not performed. Manually hidden-row and AutoFilter results below follow documented rules.
Syntax
=SUBTOTAL(function_number; range)
function_number selects the calculation and the treatment of manually hidden rows. range is the referenced data to summarize. Put the formula outside that range so it cannot include itself.
| Calculation | Include manually hidden rows | Exclude manually hidden rows |
|---|---|---|
| Average | 1 | 101 |
| Count numeric values | 2 | 102 |
| Count nonempty values | 3 | 103 |
| Maximum | 4 | 104 |
| Minimum | 5 | 105 |
| Product | 6 | 106 |
| Sample standard deviation | 7 | 107 |
| Population standard deviation | 8 | 108 |
| Sum | 9 | 109 |
| Sample variance | 10 | 110 |
| Population variance | 11 | 111 |
Rows excluded by an AutoFilter are excluded in both groups. The 100-series changes the treatment of manually hidden rows. The official reference also says nested SUBTOTAL results inside a referenced range are not included again.
Prepare a controlled example
Enter A1:C6 as follows. Use a fresh sheet so there are no existing filters or hidden rows.
| Row | A: Item | B: Region | C: Amount |
|---|---|---|---|
| 1 | Item | Region | Amount |
| 2 | Pen | East | 10 |
| 3 | Pad | West | 20 |
| 4 | Box | East | 30 |
| 5 | Tape | West | 40 |
| 6 | Folder | East | 50 |
Put these formulas in E2:E5:
=SUBTOTAL(9;C2:C6)
=SUBTOTAL(109;C2:C6)
=SUBTOTAL(101;C2:C6)
=SUBTOTAL(102;C2:C6)
Before hiding or filtering anything, the expected results are 150, 150, 30, and 5. The average is (10+20+30+40+50)/5, so 30; the numeric count is five.
Example 1: hide one row manually
Hide sheet row 3 using the row-header hide command. Do not apply an AutoFilter for this test.
| Formula | Expected result | Reason |
|---|---|---|
=SUBTOTAL(9;C2:C6) |
150 | Function 9 includes manually hidden row 3. |
=SUBTOTAL(109;C2:C6) |
130 | Function 109 omits row 3’s amount of 20. |
=SUBTOTAL(101;C2:C6) |
32.5 | Visible amounts total 130 across four numeric cells. |
=SUBTOTAL(102;C2:C6) |
4 | Four numeric entries remain visible. |
Restore row 3 before the next test. Keeping each test independent avoids attributing the effect of a previous filter to the current action.
Example 2: filter the table to East
Select the table, enable AutoFilter through the sheet’s Data controls, and set Region to East. The retained records are rows 2, 4 and 6.
| Formula | Expected result |
|---|---|
=SUBTOTAL(9;C2:C6) |
90 |
=SUBTOTAL(109;C2:C6) |
90 |
=SUBTOTAL(101;C2:C6) |
30 |
=SUBTOTAL(102;C2:C6) |
3 |
Both sum forms exclude West rows because those rows are filtered out. Changing 109 to 9 does not bring filtered records back into the total. Use an ordinary SUM for a total that is intended to cover the whole referenced range regardless of the filter.
Example 3: filtering and manual hiding together
With the East filter still active, manually hide sheet row 4, the Box row.
=SUBTOTAL(9;C2:C6)remains 90: it still includes the manually hidden East amount of 30.=SUBTOTAL(109;C2:C6)becomes 60: only 10 and 50 remain eligible.=SUBTOTAL(101;C2:C6)becomes 30: the two eligible values average to 30.=SUBTOTAL(102;C2:C6)becomes 2.
Notice that the average is 30 both before and after this change. An unchanged summary does not prove the same rows contributed. Showing a visible-record count next to an average makes that ambiguity easier to detect.
Example 4: avoid double-counting an existing subtotal
Use a separate fresh sheet with no filters or hidden rows. Enter 10 in B2 and 20 in B3. In B4 enter:
=SUBTOTAL(9;B2:B3)
B4 is expected to display 30. Now compare formulas outside B2:B4:
=SUM(B2:B4)
=SUBTOTAL(9;B2:B4)
Expected results: 60 and 30. SUM adds the subtotal cell as another number. SUBTOTAL recognizes the nested subtotal and omits it. If you replace B4’s formula with a hard-coded 30, that protective distinction is lost: it is then an ordinary number in the range.
Choosing a count, total or average
Numeric counting (2 or 102) is appropriate for checking how many numeric measurements contribute. Nonempty counting (3 or 103) answers a different question and can include labels. Choose the range deliberately: counting an Item column with a numeric count will not give the number of orders.
Keep imported numeric text, empty cells and formula errors visible during investigation. Formatting a string to look like a currency amount does not establish that it is stored as a number. Do not replace an error with zero merely to obtain a tidy subtotal; that changes the meaning of averages and counts.
Troubleshooting checklist
- Check the function number before changing the source data.
- Distinguish AutoFilter exclusions from manual row hiding.
- Confirm the formula points to data cells only and does not include itself.
- Check for subtotal formulas already inside the range.
- Restore filters and hidden rows, then reproduce one change at a time.
- Record the installed Collabora version if behavior differs from the 26.04 reference.
This guide does not claim that hidden columns behave like hidden rows, or that other spreadsheet products have identical UI and export behavior. Test the specific workbook in the receiving application when interoperability matters.
Official reference
- Collabora Office 26.04: Mathematical Functions, SUBTOTAL, checked October 13, 2026.
- Editorial standards.