Explanation

The most common Subtotal calculation is Sum.

Steps

  1. Sort the data by the grouping column.
  2. Select the data.
  3. Go to Data → Subtotal.
  4. Choose At each change in:
  5. Choose Use function:
  6. Select the Sales
  7. 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.