What the video covers
Shows how to use Excel’s built-in Subtotal tool to add automatic subtotals and a grand total for a sorted data table. Does not cover creating pivot tables or writing manual formulas.
Watch the video on YouTubeStep-by-step instructions
- Sort your table by the category column
Sort the data by the column you want to group on (for example, Region, Department, or Product). Subtotal creates groups at each change in that column, so sorting first is essential. - Select any cell inside the sorted table
Click a single cell within your data range — you do not need to pre-select the whole table. - Open the Subtotal tool
Open the Data tab and click the Subtotal button in the Outline group to open the Subtotal configuration dialog. - Configure grouping and function
In the dialog, choose the column to group 'At each change in' (the category you sorted by). Choose a calculation in 'Use function' such as Sum, Average, Count, or Product. - Select the numeric column(s) to subtotal and apply
In 'Add subtotal to', check the numeric column(s) you want calculated (e.g., Sales Revenue) and click OK to insert subtotals and a grand total. - Use the outline level buttons to view summaries
Use the small outline buttons (1, 2, 3) at the left edge: 1 shows only the grand total, 2 shows each subtotal summary, and 3 expands to show all rows and subtotals. - Remove subtotals when you’re done
To remove the automated subtotals and restore the plain data layout, open the Subtotal tool again and click Remove All. This preserves your original numbers.
Watch the video
Play tutorial
Why it matters
Subtotal automates grouping and calculations (Sum, Average, Count, Product) so you can get quick summaries without building formulas or pivot tables. It also provides outline controls for fast collapsing/expanding of the view.
Check your result
You should see grouped subtotal rows inserted after each change in your chosen category, a grand total at the bottom, and outline level buttons (1, 2, 3) on the left edge to collapse/expand the view.
Troubleshooting
If subtotals are duplicated or grouped incorrectly, your table wasn’t sorted by the category column before running Subtotal. Remove all subtotals, sort the data by the intended category, then run Subtotal again. If numeric columns don’t subtotal, ensure they are stored as numbers (not text).