Explanation
The most common Subtotal calculation is Sum.
Steps
- Sort the data by the grouping column.
- Select the data.
- Go to Data → Subtotal.
- Choose At each change in:
- Choose Use function:
- Select the Sales
- Click OK.
Example Result
|
City |
Product |
Sales |
|
Hisar |
Mouse |
5000 |
|
Hisar |
Monitor |
17000 |
|
Hisar |
Webcam |
10000 |
|
Hisar Total |
32000 |
|
|
Sirsa |
Keyboard |
4000 |
|
Sirsa |
Monitor |
25500 |
|
Sirsa |
Printer |
12000 |
|
Sirsa Total |
41500 |
Excel also creates an outline so that detail can be collapsed.
Practice
Create City-wise Sales Subtotals.