Skip to content

Coach Winona · AI at Work · Intermediate

Build and check a pivot table

Download the practice CSV. Open it in Excel or import it into a blank Google Sheet. Confirm the headers start at A1 before using the cell references below.

The five practice rowsPractice example
Order
Region, category
Amount
N-101
North, Office
$120
N-102
North, Shipping
$85
S-201
South, Office
$90
S-202
South, Shipping
$35
S-203
South, Shipping
$35
Sample rows from the page’s practice CSV (A2:D6). The two highlighted rows make up the South Shipping cell.

Try it

Set up the pivot fieldsDiagram
Diagram of the pivot fields: Region goes to Rows, Category goes to Columns, Amount goes to Values with the calculation set to Sum, not Count. Filters stay empty.RegionRowsCategoryColumnsAmountValues: SumSum, not Count.Leave filters empty.
Select A1:D6 and use a new sheet before adding the fields.
  1. Confirm five detail rows in A2:D6 and five numeric amounts with =COUNT(D2:D6).
  2. Select A1:D6. Choose Insert > PivotTable in Excel or Insert > Pivot table in Google Sheets. Use a new sheet.
  3. Add Region to Rows, Category to Columns and Amount to Values. Set the calculation to Sum, not Count, and leave filters empty.
  4. Recompute one cell directly from the original rows: South Shipping contains S-202 and S-203, so $35 + $35 = $70. Then check both region totals.
The pivot you should getPractice example
Region
Office + Shipping
Total
North
$120 + $85
$205
South
$90 + $70
$160
Grand total
$205 + $160
$365
Recompute one cell

South Shipping contains S-202 and S-203, so $35 + $35 = $70.

Use those checked totals before drawing a chart.
Show the worked check
  • North: Office $120 + Shipping $85 = $205.
  • South: Office $90 + Shipping $70 = $160.
  • Grand total: $365. A total of 5 indicates the pivot counted rows instead of summing amounts.

No pivot tool handy? Write the four region/category groups on paper and add each group. Use those checked totals before drawing a chart.

Catch a Count instead of a SumComparison

Count

A total of 5 indicates the pivot counted rows instead of summing amounts.

Sum

Grand total $365.

No pivot tool handy? Write the four region/category groups on paper and add each group.

Try this prompt

Use the practice file or non-confidential details. Use an approved tool and turn model training OFF where that setting is available. No AI account is needed for the worked check.

Plan the fields and independent checks

Given [non-confidential column labels] and [business question], suggest the source range, Rows, Columns, Values and aggregation for a pivot table. List one cell I can recompute from the source and one way to catch a Count instead of a Sum.

Spreadsheet references

Back to the spreadsheet workflow lessons

The AI PulseWhat actually matters in AI, minus the hype — twice a week.
Free forever · unsubscribe anytime · all 14 newsletters
That email did not go through — please check it and try again.