Skip to content

How to add subtotals to a table in Google Sheets

Adding subtotals manually to grouped data is slow and error-prone. Whenever your data changes, you have to update every total row by hand.

Table Total automates this process — it scans your table, groups rows by the column you choose, and inserts SUBTOTAL formula rows after each group. The result is a structured summary table that reflects your data accurately.

Table Total inserts SUBTOTAL(...) rows into your spreadsheet, grouped by a key column you select. This is the same functionality as Excel’s Subtotal feature — now available in Google Sheets.

Example: A sales table grouped by Region gets subtotal rows calculating the total sales for each region, plus an optional grand total at the bottom.

Click any cell inside the table you want to add subtotals to. Table Total will detect the surrounding data region automatically.

In the Google Sheets top menu, go to Extensions > Table Total > Start.

Select the column that contains the group identifiers (e.g., Region, Category, Department). Table Total will insert a subtotal row after each group of consecutive rows with the same value in this column.

Select the aggregation function to apply. See Available functions for the full list.

Select which columns should have subtotal formulas. You can apply totals to one or multiple columns.

OptionDescription
Replace currentRemove existing subtotal rows before adding new ones
Add grand totalInsert a grand total row at the bottom of the table
Add row groupsCreate collapsible row groups in Google Sheets

Table Total processes your table and inserts the subtotal rows. A summary shows the number of groups processed.


To remove existing subtotal rows, open Table Total, enable Replace current, and click Add Totals — or use the Remove Totals option in the add-on menu.