من أنا
المقالات
الوظائف
التواصل معي

Pivot tables and reports

Ten thousand rows of journal entries, and one question from the manager: "how much did we spend per cost centre?" The answer is three clicks away — if your data is clean.

Chapter 1 · Lesson 5 of 511 min readBeginner level

A pivot table summarises thousands of rows in seconds without writing a single formula. Its one condition: data laid out as we learned in Lesson 1.

1 The five steps

1
Clean the data

Single headers, no gaps

2
Ctrl + T

Turn it into a named Table

3
Insert → PivotTable

On a new sheet

4
Place the fields

Rows · columns · values · filters

5
Format and refresh

Number formatting, then refresh when the data changes

A pivot never alters your source data — so experiment without fear

2 The four areas

AreaWhat goes in itExample
RowsWhat you want broken down verticallyCost centre · account
ColumnsA second dimension for comparisonMonth · quarter
ValuesWhat gets calculatedSum of amount · count of entries
FiltersWhat scopes the reportBranch · year

How does a pivot fold rows into a summary?

The raw entries
Cost centre Amount
Administration 85,000
Sales 62,000
Administration 30,000
Sales 45,000
The pivot table
Cost centre Sum of amount
Administration 115,000
Sales 107,000
1The pivot reads every row of the raw data
2It gathers matching rows into one group
3It totals each group
4And presents them as a comparable summary — with no formula at all

Four rows here for illustration; the same principle works on forty thousand rows just as fast — provided the data is laid out as in Lesson 1, and you press Refresh before sending.

From journal entries to an expense report

The raw data:

The “Entries” sheet — one entry per row
ABCD
1DateCost centreAccountAmount
22026-01-12AdministrationSalaries85,000
32026-01-20SalesSalaries62,000
42026-02-03AdministrationRent30,000
52026-02-18SalesMarketing45,000

The pivot output: cost centre in rows, month in columns, sum of amount in values.

PivotTable — sum of amount
Cost centreJanuaryFebruaryTotal
1Administration85,00030,000115,000
2Sales62,00045,000107,000
3Total147,00075,000222,000

Drag “Account” into Rows beneath Cost centre and the report becomes hierarchical: each centre with its expenses broken out — with no formula at all.

A pivot does not update itself

If you change the source data, the report keeps its old figures until you press Refresh. Many a meeting has discussed last month’s numbers without anybody noticing. Make refreshing the last step before sending any report.

3 Tools that enrich a report

SlicerClear filter buttons instead of drop-down lists
TimelineA time bar for moving between months and quarters
Show Values AsDisplaying a percentage of the total instead of the amount
GroupGrouping dates into months, quarters and years
PivotChartA chart that follows the pivot automatically
Ctrl + Alt + F5Refresh all data in the workbook

4 Conditional formatting

It colours cells automatically according to their value, so the reader sees the exception before reading the number:

  • Data bars: a quick visual comparison within the column.
  • Colour scales: higher is darker — useful for receivables ageing.
  • A custom rule: colour the whole row if the debt is over 90 days old.
  • Icon sets: ✓ and ! markers for the status of items.

Two colours are enough

A report that is coloured all over highlights nothing. Reserve one colour for a warning and one for a positive, and leave the rest neutral. The same rule applies to charts: one chart answers one question.

5 Before sending and printing

StepWhy
Refresh the pivot and the connectionsSo you do not send stale figures
Freeze the header rowSo it stays visible as you scroll
Repeat the header row on every pagePage Setup → Print Titles
Set the print area and fit to one page widePrevents truncated pages
Consistent number formatting with thousands separatorsReadability and a professional look
Export to PDF for sharingPreserves the layout and prevents casual editing

Chapter 1 summary

  • A sound table is the prerequisite for everything that follows.
  • An absolute reference protects your formulas when you fill down.
  • Ten functions cover most daily work.
  • XLOOKUP or INDEX+MATCH for linking tables.
  • A pivot condenses thousands of rows — provided you refresh before sending.

6 Test your understanding

Three quick questions

Pick the answer you believe is correct and you will see the result immediately.

1. You added new rows and they did not appear in the pivot. The most likely cause:

2. You want each cost centre’s expenses spread across the months. Where do you put “Month”?

3. Best practice in formatting a report that management will read:

Sources and review: command names and steps (PivotTable, Slicer, Timeline and Page Setup) follow the official documentation for Microsoft Excel. Command locations may differ between versions and between Windows, macOS and Excel for the web. The data is illustrative. Last reviewed: September 2026.