Example: Summarising regional sales with a PivotTable

A small electronics retailer logs every order in one worksheet, one row per order. Typing a SUM for every region and product works for eight rows but not for eight thousand. A PivotTable does that grouping for you: you drag fields from the source data into the Rows, Columns and Values areas, and Excel builds a cross-tabulated summary that you can rearrange, re-express as percentages and filter without writing a formula. Work each part before revealing its solution.


Order

Region

Product

Units

Revenue (USD)

1001

East

Laptop

3

2700

1002

West

Tablet

5

2000

1003

East

Tablet

2

800

1004

West

Laptop

4

3600

1005

East

Laptop

1

900

1006

North

Tablet

6

2400

1007

North

Laptop

2

1800

1008

West

Tablet

3

1200



a) Insert a PivotTable on a new sheet with Region in the Rows area, Product in the Columns area and Revenue in the Values area. Which region earns the most revenue, and how much?


Excel lists each unique Region once down the left and each unique Product once across the top. Because Revenue is numeric, the Values area summarises it with Sum, so every cell adds the revenue of all orders that share that region and product.

  • East: Laptop is 2,700 + 900 = 3,600 USD and Tablet is 800 USD, so the East total is ________ USD.
  • West: Laptop is 3,600 USD and Tablet is 2,000 + 1,200 = 3,200 USD, so the West total is 6,800 USD.
  • North: Laptop is 1,800 USD and Tablet is 2,400 USD, so the North total is ________ USD.

The column totals are 9,000 USD for Laptop and 6,400 USD for Tablet, and the grand total in the bottom-right corner is ________ USD. That grand total matches the sum of the Revenue column in the source data, a quick check that no rows were missed. West earns the most revenue, 6,800 USD.


b) Keep the same layout, open Value Field Settings, choose the Show Values As tab and select % of Grand Total. What does the West row's Grand Total cell display, to one decimal place?


% of Grand Total divides every cell by the report's grand total of 15,400 USD. The underlying sums do not change; only the way they are displayed does.


West share=6,80015,400=0.4416=44.2%\text{West share} = \frac{6{,}800}{15{,}400} = 0.4416 = 44.2\%


The other regions follow the same way: East is 4,400 / 15,400 = ________ and North is 4,200 / 15,400 = ________. The three displayed shares add to 100.1% only because each is rounded to one decimal place; the unrounded shares add to exactly 100%. The West row's Grand Total cell displays 44.2%.


c) Insert a slicer for Product and click Laptop, leaving % of Grand Total switched on. What share does West show now, and why did it change?


A slicer filters the PivotTable to the items you select, so only the four Laptop orders remain in the summary. The Laptop revenue is ________ USD for East, 3,600 USD for West and ________ USD for North, so the filtered grand total is ________ USD.


West share of laptop revenue=3,6009,000=0.400=40.0%\text{West share of laptop revenue} = \frac{3{,}600}{9{,}000} = 0.400 = 40.0\%


West's share falls from 44.2% to 40.0% because the denominator is now laptop revenue only, and West was strongest in tablets, where it earned 3,200 of 6,400 USD, or 50%. With the Laptop slicer on, West shows 40.0%.



Match each PivotTable area or tool on the left with the description of what it does when you build or maintain a summary report in Excel.

Match each term
A.

Rereads the source range so the summary reflects edited or added data

B.

Lists each unique item of a field once down the left side as a label

C.

Spreads each unique item of a field across the top as headings

D.

Holds a numeric field that Excel aggregates with a function such as SUM or COUNT

E.

Restricts the entire report to chosen items of a field, using a drop-down above the table

F.

A panel of clickable buttons that filters one or more connected reports by a field's items

Values area

Refresh

Filters area

Rows area

Columns area

Slicer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A student must summarise a worksheet of 3,000 sales orders by region with a PivotTable and keep the summary current as new orders arrive. Put these steps in the order they should be carried out.

  1. 1.

    After new orders are added to the source Table, click Refresh on the PivotTable.

  2. 2.

    Click any cell in the data and choose Insert, then PivotTable.

  3. 3.

    Check that the source data has one header row and no blank rows or merged cells, then format it as an Excel Table.

  4. 4.

    Open Value Field Settings and confirm Revenue is summarised with Sum rather than Count.

  5. 5.

    Drag Region into the Rows area and Revenue into the Values area.

  6. 6.

    Confirm the source Table in the dialog and choose to place the report on a new worksheet.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A company records expense claims in the source table below. You create a PivotTable with Department in the Rows area, Quarter in the Columns area and Sum of Amount in the Values area.


Claim

Department

Quarter

Amount (USD)

1

Sales

Q1

420

2

Support

Q1

150

3

Sales

Q2

380

4

Sales

Q1

200

5

Support

Q2

310

6

Support

Q2

90

7

Sales

Q2

160


Fill in every value the PivotTable displays, in USD, as whole numbers without commas.

DepartmentQ1Q2Grand Total
Sales
Support
Grand Total

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors