Build a PivotTable and reconcile the result
Learn the reasoning. Try the task. Compare your answer.
Prepared for DataCareerHub · Curriculum version 2026-10-14.2
By the end of this lesson
- Choose a PivotTable source at the correct row grain.
- Use Sum and Count intentionally and filter the intended population.
- Refresh and reconcile a native PivotTable against an independent formula summary.
Use English formula names and comma separators as shown, adapting to your Excel locale. The solution uses INDEX/MATCH; XLOOKUP is optional. Native PivotTable practice is performed in your own Excel edition.
Understand the method
A PivotTable is a native Excel summary that groups records and aggregates fields. An Excel Table is the rectangular source with headers and filters. They are different features. In this lesson you will create the PivotTable yourself in your installed Excel edition. Neither downloaded workbook contains a prebuilt native PivotTable. The solution provides a formula summary for independently checking your result.
Start from a verified source
Complete the Prepared formulas first and confirm the Orders table includes A5:H17. Each row is one verified order. Missing identifiers, duplicate order rows or inconsistent value types would undermine the summary even if every PivotTable setting were correct. Use the verified data, not the original raw extract with the duplicated M004.
Create the summary
- Select a cell in Orders and choose Insert, PivotTable. Use the full Orders table as the source and place the result on a new sheet. Rename the sheet My pivot.
- Put month_start in Rows. Keep the actual month and year. If Excel automatically groups the field, inspect the grouping rather than allowing February from multiple years to combine.
- Put channel in Columns.
- Put order_value_eur in Values and confirm its aggregation is Sum.
- Put status in Filters and select completed. Record that choice beside the result.
- Format the values as EUR and compare every month/channel cell with the formula summary.
Menu and field-list layouts vary between Excel editions. If you cannot create a PivotTable in your current app, complete the formula summary and read the worked configuration; the native practice task remains unfinished until you can create and inspect it in Excel.
Inspect Sum versus Count
When a value field contains text, Excel may choose Count rather than Sum. Read the field caption and settings rather than assuming the chart or table is showing money. Add order_id to Values as Count if you want completed-order counts. Counting IDs represents order count here only because every prepared ID occurs once. You do not need a distinct-count feature for this verified table.
For AOV, divide summed completed sales by counted completed orders using matching populations. Averaging order_value_eur also gives AOV here when the data is numeric and the completed filter is applied, but the explicit numerator and denominator are easier to audit and safer when the data grain changes.
Build an independent reconciliation
In Analysis B14 enter:
=SUMIFS('Prepared'!$E$6:$E$17,'Prepared'!$D$6:$D$17,"completed",'Prepared'!$F$6:$F$17,B$13,'Prepared'!$C$6:$C$17,$A14)Fill down to B15 and across to C15. B$13 moves across periods while $A14 moves down channels. B16 is =SUM(B14:B15) and B17 is =B16-B6; copy these to column C. The two differences should be zero. This diagnostic must not feed the underlying business calculations. Agreement between two summaries does not independently prove that the source file is complete, so keep the quality checks too.
Refresh deliberately
After changing source data, refresh the native PivotTable using the refresh command in your edition. A formula summary and a PivotTable can otherwise show different moments of the source. For new rows, verify the source table expands, the PivotTable source includes them, and any fixed sample formulas are extended. This module does not assume automatic PivotTable refresh or an external connection.
Practical exercise
Create My pivot from Orders, configure the completed filter and produce month/channel sales and order counts. Fill Analysis B14:C17 and compare all four sales cells with the PivotTable. On a disposable copy change Prepared E6 from 100 to 150. Observe the formula summary, refresh the PivotTable, compare again, then restore 100 and refresh once more.
Deliverable: your own native PivotTable, four reconciled channel amounts, two zero differences and a short refresh note. Do not label the formula summary itself a PivotTable.
Open the worked solution
| Month | web | store | Grand total |
|---|---|---|---|
| Feb 2026 | €250 | €250 | €500 |
| Mar 2026 | €300 | €300 | €600 |
| Total | €550 | €550 | €1,100 |
Each month/channel combination has two completed orders. Monthly counts are four and the combined count is eight. Analysis B17 and C17 are zero because channel amounts reconcile to their monthly headline. With E6 temporarily at 150, February/web becomes €300 and February's total €550. The formula summary changes immediately; the PivotTable should agree after refresh. Restore E6 to 100 and refresh to return the reference totals.
If the completed filter is accidentally removed, reference totals become €700 for February and €840 for March. If you use the raw duplicate-containing source with the completed filter, March becomes €800. These different results are diagnostic clues about population and source choice, not acceptable alternative answers to the defined question.
One more question.
Microsoft references: XLOOKUP availability and syntax, import locale settings, refreshing PivotTable data.
How these learning materials are prepared and maintained · Report a correction: support@datacareerhub.io
Read and practice without an account. Sign in with an existing account to save lesson completion.
Next lesson →Fictional training data. Portfolio practice is not a claim of client work or an accredited qualification. Explore practical lessons, worked examples and projects. Follow a published path, practise the method and build work you can explain.