How to Add a Totals Row to a Table
In this article
Adding a totals row to a table is a quick way to sum, average, count, or find the min/max of numeric columns without writing a single formula. It works in Excel and Google Sheets, and in both apps it takes less than 30 seconds once you know where to click. You don't need any special skills—just a table with at least one numeric column and a version of Excel 2010 or later, or any current Google Sheets.
What You'll Need
- A spreadsheet file (Excel or Google Sheets) containing a table of data, ideally with column headers in the first row.
- At least one column with numeric values (numbers, currency, dates, or times) that you want to summarize.
- No formulas or macros are required—the totals row is built-in.
Step-by-Step
In Microsoft Excel (Windows and Mac)
- Click anywhere inside your table. If your data isn't already formatted as a table, select the range and press Ctrl+T (Windows) or Cmd+T (Mac). Make sure the “My table has headers” box is checked, then click OK.
- With the table selected, look at the ribbon at the top. You'll see a new tab called Table Design (or Table Tools Design in older versions). Click it.
- In the Table Style Options group, check the box that says Total Row. A new row appears at the bottom of the table.
- The totals row shows the word “Total” in the first column and a SUM in the last numeric column by default. To change the calculation for any column, click the cell in the totals row under that column.
- A dropdown arrow appears. Click it and choose from: None, Average, Count, Count Numbers, Max, Min, Sum, StdDev, Var, or More Functions (which opens the Insert Function dialog).
- Click anywhere outside the table to deselect it. The totals row stays visible and updates automatically when you add or change data in the table.
In Google Sheets
- Open your spreadsheet and select any cell inside the data range.
- Go to the menu: Format > Table > Create table (or simply press Ctrl+Shift+L on Windows or Cmd+Shift+L on Mac). Ensure “My table has headers” is checked and click Create.
- Once the table is created, a Table menu appears in the toolbar. Click it.
- Select Show totals row. A new row appears at the bottom with a “Total” label in the first column and a sum in the last numeric column.
- To change the function for a column, click the cell in the totals row. A dropdown will appear with options: Sum, Average, Min, Max, Count, CountA, and None. Pick the one you need.
- If you want to add totals for multiple columns, repeat step 5 for each column. The row updates automatically as you edit data.
Common Mistakes
- Not converting data to a table first. The totals row feature only works on Excel Tables or Google Sheets Tables. If you just have a plain range, the Total Row checkbox won't appear.
- Clicking the wrong cell. The dropdown only appears when you click a cell in the totals row—not the column header or data cells.
- Assuming the totals row is always a sum. Excel defaults to SUM, but you may need Average or Count. Always check the dropdown to confirm the function matches what you want.
- Adding a totals row to a filtered table. In Excel, the totals row only calculates visible (filtered) cells by default. If you want the total of all rows regardless of filter, you need to use a SUBTOTAL function with a different argument, which is beyond the basic totals row.
- Deleting the totals row by mistake. If you press Delete on a cell in the totals row, it only clears the value, not the row. To remove the row entirely, uncheck the Total Row box.
Tips
- Use the Count function to see how many entries are in a column—this is especially useful for text columns where SUM doesn't make sense.
- In Excel, you can add a totals row to multiple tables on the same sheet; each table has its own independent totals row.
- If you want the totals row to always be visible even when you scroll down, consider using the Freeze Panes feature (View > Freeze Panes) to keep the header row visible, but remember the totals row is at the bottom—so you'd freeze the bottom row instead (select the row above the totals row, then Freeze Panes).
- In Google Sheets, the totals row automatically ignores filtered-out rows if you use the table's filter. That's usually what you want when analyzing a subset.
- To quickly add a totals row in Excel without the ribbon, right-click any cell in the table and choose Table > Totals Row.
- If you need a custom calculation (like a weighted average), you can type a formula directly into a totals row cell—just start with “=” and reference other cells, but be aware that the dropdown will then show “More Functions” and your custom formula won't be replaced unless you choose a preset.
Troubleshooting
- The Total Row checkbox is grayed out. This happens when your selection isn't a proper table. Convert the range to a table first (Ctrl+T in Excel, or Format > Table in Sheets).
- The totals row shows “Total” but no numbers. Likely the column contains text or empty cells. For SUM, only numeric cells are counted. Check that your numbers are stored as numbers, not text (look for a green triangle in Excel or left-aligned numbers in Sheets).
- The dropdown doesn't appear when I click the totals row cell. Make sure you're clicking exactly on the cell in the totals row, not the row above or below. Also, ensure the table isn't protected (Review > Unprotect Sheet).
- I added a new row to the table, but the totals row didn't update. If you typed directly below the table (not inside it), the table may not expand automatically. In Excel, drag the bottom-right corner of the blue border down to include the new row, or convert the new data into the table. In Sheets, the table should auto-expand if you type in the row directly below, but if not, drag the table range handle.
- The totals row disappeared after filtering. In Excel, the totals row remains visible but only shows the sum of visible cells. If you want it to disappear when filtering, that's not possible—it's always there. In Sheets, the totals row may hide if you filter out all rows; check the filter icon to clear it.
- I want the totals row at the top instead of the bottom. That's not supported by the built-in feature. You can manually add a row at the top and use SUBTOTAL formulas, but it won't be a true “totals row” that updates automatically.
Frequently Asked Questions
Can I add a totals row to a regular range that isn't a table?
No. The totals row feature is only available for Excel Tables and Google Sheets Tables. You can convert a range to a table in one click, so it's not a big hurdle.
How do I remove the totals row?
In Excel, go to Table Design and uncheck the Total Row box. In Google Sheets, go to Table menu and uncheck Show totals row. The row disappears instantly.
Why does my totals row show “Count” instead of “Sum”?
If the column contains any text or blank cells, Excel may default to Count. You can change it to Sum by clicking the cell and selecting Sum from the dropdown.
Can I use the totals row with filtered data?
Yes. In Excel, the totals row automatically uses SUBTOTAL, which only includes visible rows. In Google Sheets, the totals row also respects filters applied to the table.
Does the totals row update automatically when I add new rows?
Yes, as long as you add the new row inside the table (by typing in the row directly below the last data row and pressing Enter, or by dragging the table's resize handle). If you type outside the table, it won't be included.
Can I have multiple totals rows?
No, a table can have only one totals row. If you need multiple summary rows, consider using formulas like SUM or AVERAGE in separate cells outside the table.