Business Tech

Excel reporting: how to check a PivotTable before sharing it

A PivotTable can produce a neat branch sales report even when the numbers underneath it are wrong. A column imported as text can turn a total into a count. An export pasted below the selected range can leave out the newest orders. A lookup can miss a stock code with an unexpected space. Excel gives a small team ways to make these problems visible before a report is shared, starting with a source table, a few checks and a record of when it was refreshed.

Consider a South African business that receives a new sales export each Friday. One person runs the report, an accounts colleague checks the rand totals, and managers use it to compare branches. The useful goal is to make it possible for any of them to follow a number back to its source. The steps below apply to a workbook that the team maintains itself. For a broader picture of the application and its deployment, see Technology Blog’s guide to Excel workflows and integrations.

Work out what each row represents

An export can contain an order per row, an item per row or a mixture of sales and returns. Identify that unit before counting anything. If an order appears once per item, the number of lines will exceed the number of orders when customers buy more than one product. A report can validly show both measures, provided the headings identify which one is being used. Keep return rows and agree whether their amounts already carry a minus sign before using them to calculate a net figure.

Keep the original data and the report on separate sheets. The source should have one row of headers and a consistent purpose for each column. A heading such as Net sales (ZAR) helps a reader distinguish rand values from a column that contains prices in another currency. Excel can show a currency symbol as formatting, but changing the symbol does not convert the underlying values. For a mixed-currency file, keep the currency and the conversion assumption visible before adding amounts together.

Microsoft’s PivotTable documentation recommends tabular data with a single header row and consistent types. It also notes that a table can include newly added rows when the PivotTable is refreshed. This helps with recurring imports. A report built from a fixed range can still show an old selection after new rows have been put below it. After an import, verify that the table covers the new export before relying on the refresh.

Treat unmatched lookups as a result worth reviewing

A report may need to match an exported product code to a list that contains the product’s category. Microsoft’s XLOOKUP documentation says the function performs an exact match by default. That is a useful starting point for stock codes. It allows the result to identify a missing code so the report owner can review it. A formula that silently replaces every missing match with a blank can make the report look tidier while hiding products that still need a category.

Before trusting the lookup, check that each code intended as a unique key appears once in the reference list. Two records with the same code can represent a data entry error or a rule the sheet has yet to capture, such as a code that was reused. Sample rows with leading zeros after importing a file. A code stored as text in the catalogue may differ from a value the import treated as a number. Correct the data type deliberately and record the change so next week’s import follows the same rule.

Also check what the people receiving the file can run. Microsoft says XLOOKUP is unavailable in Excel 2016 and Excel 2019. An older installation can encounter the formula in a workbook made with a newer release. If the receiving team needs to recalculate it, test the workbook in the version people will actually use. If a recipient only needs the approved figures, a separate values-only copy can communicate them while the calculation remains in the main workbook.

Confirm what the PivotTable is counting

Microsoft documents that numerical values normally default to Sum in the Values area. Excel can default to Count when it interprets the field as text. A branch that appears with a figure of 120 may have 120 rows of sales data, while the intended measure was R120,000 in revenue. Check the field name and its summary setting, then reconcile the overall figure to a direct total of the relevant source rows under the same filters. Investigate differences before moving on to formatting or charts.

Add a deliberate check for filters. A report that excluded one region for a meeting may open with that selection still applied. Copying the number into a slide can separate it from the filter that gave it meaning. Put the period and scope beside the number at the point where someone reads it. Then refresh the PivotTable, confirm the expected period is present and record the date of the export. That gives a reviewer a way to distinguish a stale copy from a change in the underlying business.

Share the version someone else can verify

Microsoft’s co-authoring documentation describes supported Excel versions, formats and storage on OneDrive or SharePoint Online. Check whether colleagues need to revise the source and formulas or simply view the finished report. A shared link can keep people on one version, but the edit permissions and the workbook’s structure still determine who can change a calculation. The accounts reviewer should be able to check the figure without giving every reader permission to edit the source.

A practical handover is to give a colleague the export and ask them to refresh the workbook, find one unmatched record and trace a branch total back to the original rows. If they cannot tell which numbers are inputs, what a filter excludes or when the file was last updated, the report needs clearer labels and checks. The handover is complete when someone else can reproduce the figure and explain what it includes.

If the report will be reused every week, write down which export to use and who checks the total before circulation. Keep that short note beside the report. A new owner can then follow the same sequence when the person who built the workbook is away.