SUBTOTAL in Zoho Sheet: Syntax, Worked Examples, and Troubleshooting
Select a summary calculation by numeric code; learn the verified help syntax, sample formulas, independent expected results and common pitfalls.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: SUBTOTAL lets you choose a calculation such as sum, mean or maximum using a numeric function code. For an order table it is useful for compact reporting panels.
Use this if you need to select a summary calculation by numeric code. This guide is for Zoho Sheet, not a generic spreadsheet formula copied from Excel. Its calculations are original educational examples with expected values checked independently. No formula was run in a signed-in Zoho Sheet account.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official SUBTOTAL reference. Documentation check; not a new native test.
Syntax and argument definitions
=SUBTOTAL(function; range)
| Argument | What to enter |
|---|---|
function |
A code from Zoho’s documented set 1–11: 1 AVERAGE, 2 COUNT, 3 COUNTA, 4 MAX, 5 MIN, 6 PRODUCT, 7 STDEV, 8 STDEVP, 9 SUM, 10 VAR, 11 VARP. |
range |
Required cell range to summarize, such as D2:D9. |
Zoho’s official reference uses the expression above. Brackets indicate optional arguments, not text to type. All formula examples use Zoho’s English help syntax with semicolon argument separators. Numeric displays may gain currency symbols or decimal places depending on cell formatting. Read the answer as a number unless the guide expressly says it is text. The formulas below use cell references relative to the stated table.
Worked example: exact inputs, formula and result
Prepare this eight-order practice data
- Open a blank Zoho Sheet and paste the table below into cells A1:F9, using row 1 for its six headers. A CSV with these exact eight records is also included in this batch; import it at A1 if copying the table is inconvenient.
- Check that cells in the Amount and Units columns are numeric, not text imported from a CSV. Keep the headers out of formula ranges unless the guide explicitly says otherwise.
- Enter the formula in an unused result cell such as H2, away from the original records; do not place it inside its input range.
- Check the expected output against the values in the table before substituting your business data. These expected outputs are independently calculated, not verified by running Zoho Sheet.
| Row | A: Order ID | B: Region | C: Status | D: Amount | E: Agent | F: Units |
|---|---|---|---|---|---|---|
| 2 | O-101 | East | Paid | 120 | Ana | 12 |
| 3 | O-102 | West | Pending | 75 | Bo | 5 |
| 4 | O-103 | East | Paid | 210 | Ana | 7 |
| 5 | O-104 | North | Paid | 90 | Cy | 0 |
| 6 | O-105 | West | Paid | 150 | Bo | 3 |
| 7 | O-106 | East | Pending | 60 | Dana | 8 |
| 8 | O-107 | West | Paid | 125 | Ana | 12 |
| 9 | O-108 | North | Pending | 80 | Cy | 4 |
Main calculation
=SUBTOTAL(9;D2:D9)
Expected result: 910. Code 9 means SUM according to Zoho’s reference. Adding all eight amounts gives 910.
Check the cell range character by character. If your result is different, confirm the row numbers, number formatting and that your inputs match the sample before changing the formula. The numbers here are calculated independently from the table, not copied from an application screenshot.
Second practical example
=SUBTOTAL(1;D2:D9)
Expected result: 113.75. Code 1 means AVERAGE. The same eight amounts total 910 and average 910/8 = 113.75.
This is a second, separately reasoned test case using the same named inputs. When working with another workbook, change the column references deliberately and keep comparison criteria or array dimensions aligned.
Advanced application
=SUBTOTAL(4;D2:D9)
Expected result: 210. Switching the function code to 4 returns the maximum Amount, 210. This single pattern can support a dashboard where you deliberately change the function code to choose an aggregate.
For formula composition, first confirm the simpler formula works, and only then add nested functions or criteria. The advanced formula must be entered in a different unused cell, e.g. H4, to keep it away from the source ranges.
Errors, edge cases and troubleshooting
The specific list 1–11 comes from Zoho’s documentation. In Excel, SUBTOTAL(109;range) is also used for a variant of SUM with hidden-row rules. Do not assume that Zoho supports Excel’s 101–111 codes merely because Excel does; the consulted Zoho reference does not document them. Filtering and manually hidden rows were not native-tested here, so users should verify what remains included after changing view settings. Avoid placing a summary inside its own input range, which could produce a circular reference.
Typical formula failures to investigate: #NAME! can indicate a misspelled function or undefined name; #REF! suggests a broken range reference; #VALUE! can indicate a wrong argument type. These are documented as possible errors in Zoho’s function help, but the precise error for a specific imported cell was not native-tested here. Check the formula bar, source cell data types, and range sizes before deciding that the function is broken.
If a formula returns an unexpected blank or zero, compare the relevant input rows with the worked sample. Check mixed numeric/text imports, copy-pasted quotes, leading/trailing spaces, and whether the selected input cells were moved or renamed. Do not infer an application version limitation solely from one failed formula: confirm function availability and syntax in Zoho’s in-app formula assistant.
Compatibility, versions, and limitations
Excel’s published SUBTOTAL behaviour includes 101–111 codes, but the Zoho reference consulted here enumerates 1–11 only. Do not claim identical filter or hidden-row handling without native testing. Both products support basic 9 = SUM and 1 = AVERAGE in their documented syntax.
Cross-software transfer: Excel, Google Sheets, and LibreOffice Calc also use the named function for ordinary numerical cases, but do not copy argument separators blindly: Zoho’s English help examples use semicolons (;). Syntax details, empty-cell behavior, handling of text and errors, and compatibility with exports can differ. Test a small verified dataset after migrating rather than assuming a Zoho formula will behave exactly like an Excel or Numbers one.
Related Zoho Sheet guides
Official reference and verification
- Zoho Sheet — function documentation
- Zoho Sheet — official function category
- Zoho Sheet — full function index
Verification status: Official documentation checked; example outcomes were independently reasoned or arithmetically checked where applicable. Not executed in Zoho Sheet.
- No genuine Zoho Sheet screenshots are included; this guide does not use mock application images.