Aral Code

Working with Data Lesson 12 of 13

Excel PivotTables — Summarize Data in Seconds

Summarize large tables with PivotTables — totals by category, counts by section, averages by subject, filters and slicers, grouping dates by month, and PivotCharts.

A PivotTable summarizes a big table without any formulas. Drag fields into boxes and Excel instantly shows totals, counts or averages by category. It's one of the most valuable skills for office and data jobs.

The source data

PivotTables need a clean list: one header row, one record per row, no blank rows or merged cells.

Sales (hundreds of rows in a real file)
ABCDE
1DateCategoryItemQtyAmount
22026-11-02DrinksKape432
32026-11-02BreadPandesal125
42026-11-03DrinksSoftdrink175
52026-11-03CannedSardinas372
62026-12-01DrinksKape540
72026-12-01BreadPandesal250

Creating a PivotTable

  1. Click any cell in the data (ideally an Excel Table).
  2. Insert → PivotTable → New Worksheet → OK.
  3. In the PivotTable Fields pane, drag Category to Rows and Amount to Values.
Sum of Amount by Category
AB
1Row LabelsSum of Amount
2Bread75
3Canned72
4Drinks147
5Grand Total294

The four areas

AreaPurposeExample
RowsCategories listed down the sideCategory, Item, Section
ColumnsCategories across the topMonth, Quarter
ValuesThe numbers to summarizeSum of Amount, Count of LRN
FiltersShow only part of the dataOnly one month or strand

Two dimensions

Add Date to Columns. Excel groups dates by month automatically (or right-click a date → Group → Months):

Sales by Category and Month
ABCD
1Row LabelsNovDecGrand Total
2Bread255075
3Canned7272
4Drinks10740147
5Grand Total20490294

Count and average instead of sum

Click the field in Values → Value Field Settings → choose Count, Average, Max or Min. With a class record, you can show:

  • Count of students per section and strand.
  • Average grade per subject per section.
  • Number of failing grades per subject (after filtering grades below 75).

"Show Values As" → % of Grand Total turns the numbers into percentages.

Refreshing

Slicers and PivotCharts

  • Slicers (PivotTable Analyze → Insert Slicer) are big filter buttons, like "STEM | ABM | HUMSS", perfect for dashboards.
  • PivotCharts (PivotTable Analyze → PivotChart) chart the summary and follow its filters.

Google Sheets

Insert → Pivot table works the same way: add Rows, Columns, Values and Filters in the editor panel. Google Sheets updates pivot tables automatically when the data changes.

Quick Quiz

Check what you learned. Walang grade ito, practice lang. 🙂

1. What kind of data does a PivotTable need?
2. To see total sales per category, where does Category go?
3. Does a PivotTable update automatically in Excel when data changes?
4. How do you show counts instead of sums?

By Sir Reyel · Last updated 2026-12-04