[ c ]Cellstronaut
ProductsTable Total
Table Total product icon

Table Total

v1.0for Google Sheets

Auto-insert SUBTOTAL rows grouped by any column. Native Google Sheets formulas — they work even without the add-on installed.

Just released
OverviewPricingDocsChangelog

Aggregation functions

Table Total supports the following functions for calculating subtotals. Each function corresponds to a standard Google Sheets SUBTOTAL function code.

FunctionDescriptionBest used for
SUMSum of all values in the groupSales totals, revenue, quantities
AVERAGEArithmetic mean of all valuesScores, ratings, averages
COUNTCount of cells containing numbersCounting numeric entries
COUNTACount of all non-empty cellsCounting any non-blank entries
MAXLargest value in the groupFinding peaks, highest scores
MINSmallest value in the groupFinding minimums, lowest prices
PRODUCTProduct of all valuesCompound factors, multiplications
STDEVSample standard deviationStatistical spread in a sample
STDEVPPopulation standard deviationStatistical spread of a full population
VARSample varianceVariance in a sample
VARPPopulation varianceVariance of a full population

All functions use the SUBTOTAL formula internally, which means they automatically ignore hidden rows when row groups are collapsed in Google Sheets. This ensures your subtotals always reflect visible data only.

Choosing the right function

  • SUM — the most common choice for numeric data like sales, costs, or units.
  • AVERAGE — useful when you need the mean value per group rather than the total.
  • COUNT / COUNTA — use COUNT for numbers only, COUNTA for any non-empty cell.
  • MAX / MIN — use to quickly find the highest or lowest value in each group.
  • STDEV / VAR — use for statistical analysis of data distribution within groups.

How the SUBTOTAL formula works

Table Total inserts formulas in the form:

=SUBTOTAL(fnCode, range)

Where fnCode is a number corresponding to the function:

CodeFunction
1AVERAGE
2COUNT
3COUNTA
4MAX
5MIN
6PRODUCT
7STDEV
8STDEVP
9SUM
10VAR
11VARP

This means the inserted formulas are native Google Sheets formulas — they remain fully functional even if you uninstall the add-on.