SUBTOTAL Google Sheets Formula
Generate Google Sheets SUBTOTAL Formulas in seconds
Interactive Google Sheets Formula Generator
Formula Generator
Create complex Google Sheets formulas with natural language. Simply describe what you want to calculate.
Upgrade to Sheet Alchemy Pro
Get advanced formulas, batch processing, and priority support
Input
Result
Your formula will be displayed here:
Your formula will appear here
Describe what you want to calculate and click Generate
Pro Features Available
Sheet Alchemy Pro includes additional advanced features to enhance your formula generation.
Advanced Formulas
Complex array formulas and dynamic ranges
Batch Processing
Generate multiple formulas at once
Unlimited History
Save and organize all your formulas
SUBTOTAL Formula Syntax
Example Use Case
Calculates a subtotal in a range using a specified function (e.g., sum, average) in Google Sheets, ignoring other subtotals.
Understanding the SUBTOTAL Function in Google Sheets
The SUBTOTAL function performs calculations like sum or average on a range, with a function code (e.g., 9 for sum), and ignores nested subtotals.
Why Use SUBTOTAL in Google Sheets?
SUBTOTAL is great for dynamic summaries in filtered data or tables, avoiding double-counting of subtotals.
Example with Sample Data
Input Range | Formula | Result |
---|---|---|
1, 2, 3 | =SUBTOTAL(9, A1:A3) | 6 |
4, 5, 6 | =SUBTOTAL(1, A1:A3) | 5 |
10, 20 | =SUBTOTAL(9, A1:A2) | 30 |
The table shows SUBTOTAL with codes 9 (sum) and 1 (average) on sample ranges.
Explore More Google Sheets Formulas
MEDIAN
Returns the median (middle value) of a range of numbers in Google Sheets, useful for central tendency.
Learn moreRAND
Generates a random number between 0 and 1 in Google Sheets, useful for simulations and random sampling.
Learn moreTANH
Calculates the hyperbolic tangent of a number in Google Sheets, used in hyperbolic function applications.
Learn moreFLOOR
Rounds a number down to the nearest multiple of a specified factor in Google Sheets, useful for precision rounding.
Learn moreACOSH
Calculating the inverse hyperbolic cosine of a number, useful for advanced mathematical and engineering applications in Google Sheets.
Learn moreSUMPRODUCT
Multiplies corresponding elements in arrays and sums the results in Google Sheets, useful for weighted sums.
Learn moreCEILING
Rounding a number up to the nearest multiple of a specified significance, useful for mathematical and financial applications in Google Sheets.
Learn moreLN
Calculates the natural logarithm of a number in Google Sheets, essential for growth rate analysis and scientific calculations.
Learn moreTransform Your Spreadsheet Experience
Join thousands of users revolutionizing their data workflows. Get access to premium tools and expert knowledge.