Excel Case Take the free check

Pivot tables in an Excel test: build it, then make it survive new data

By Excel Case · Updated

A pivot table is the fastest way to summarise an export in a test. It is also the easiest summary to leave out of date.

In short: Select the data, then Insert › PivotTable, and drag Region to Rows and Sales to Values. The trap: a pivot doesn't update on its own. After new rows, you must refresh (Alt+F5 on Windows), and the new rows only count if the source is an Excel Table. In the example, the total should go from 26,200 to 31,300.

The test question

Brief: "Summarise sales by region." The export has ten rows. The first summary is:

RegionSales
North8,300
South7,200
East4,100
West6,600
Total26,200

Build it in under a minute

  1. Click any cell in the data and press Ctrl+T to make it a Table. This is the step most people skip.
  2. Insert › PivotTable › OK.
  3. Drag Region to Rows and Sales to Values.
  4. If it says "Count of Sales" instead of "Sum of Sales", some sales are text. Fix the data, then use Value Field Settings › Sum.

The trap: three late rows

The reviewer pastes three more orders under the data: East 2,400, North 1,600 and West 1,100. Your pivot still shows 26,200. Pivots never update on their own.

RegionBeforeAfter refresh
North8,3009,900
South7,2007,200
East4,1006,500
West6,6007,700
Total26,20031,300

If the test is marked automatically, or the brief says "the data will be updated", SUMIFS formulas are often safer. They recalculate on their own. See SUMIFS.

Three pivot settings that come up

Questions people ask

Why doesn't my pivot table update?

Pivot tables only update when refreshed. If refresh doesn't pick up new rows, the source is a fixed range. Make the data a Table (Ctrl+T) and point the pivot at it.

Pivot table or SUMIFS in an Excel test?

A pivot is faster to build and good for exploring. SUMIFS updates by itself and is easier to check and to put in a fixed layout. Many finance tests expect formulas for the final table.

Why does my pivot show Count instead of Sum?

At least one value in the column is text or blank. Excel then defaults to Count. Fix the text numbers, then switch the field to Sum.

Now try one that marks itself

The free check gives you an email, a messy export and 10 minutes. It re-runs your formulas on data you haven't seen and shows what broke.

Start the free check

Keep practising