Key points
- Define the data grain: one row may be a line item, not an order.
- Align source scope, categories and aggregation with the question.
- Reconcile a small known example; tidy presentation is not proof of accuracy.
Why can a PivotTable still produce an inflated count?
A PivotTable summarises the supplied source and settings; it does not automatically understand whether a row is an order or a product line. Microsoft’s PivotTable overview describes category summaries and changing summary functions. This article concerns the Excel desktop versions covered by that guide, not Google Sheets instructions or a test of your workbook.
Define what one row represents
An order containing several products may occupy one row per line item. Counting rows answers how many lines exist, not necessarily how many orders exist; repeated order identifiers are not automatically errors. Define the question and identity rule before deleting legitimate detail merely to reduce a total. This is not a duplicate-customer cleanup guide.
Use three fictional rows to expose the difference
Suppose the source contains A01: product A quantity 2; A01: product B quantity 1; A02: product A quantity 4. There are 3 lines, 2 distinct order identifiers, 6 units of product A and 7 units overall. These answer different questions. The example was checked with Python, not through the Excel interface, and is not an actual sales record.

Which source boundaries should be checked?
Check the period, version, all eligible line items and whether subtotal rows have been included with detail. Seeing new rows in the worksheet does not by itself prove the report includes them. Check the current source and report state, then follow the official instructions for the actual Excel version. Preserve source records and work in an authorised copy.
How should grouping and aggregation match the question?
For product quantities, group by product and summarise quantity. For order counts, first determine how each order is counted once; do not assume a default count means distinct orders. Microsoft’s overview supports field and summary changes, but this article does not prescribe a universal distinct-count procedure across versions. Check the meaning with the small example before working on a larger source.
How should the summary be reconciled?
Select a traceable small scope, calculate the expected result from its source and compare it with the report. Investigate grain, scope, categories and summary settings before manually changing a displayed number. Record the workbook version, checked scope and exclusions; one matching example does not validate the entire source.
Frequently asked questions
Is a repeated order identifier always a duplicate?
No. It may represent separate line items; check the data grain first.
Can a count be treated as an order count?
Only when its counting unit and deduplication rule actually correspond to orders.
Does a matching grand total prove everything is correct?
No. Misclassification or offsetting errors can remain; check details too.
Should rows with repeated identifiers be deleted?
Not before confirming whether they are legitimate line items and preserving the source.
Was the example tested in Excel?
No. It was calculated with Python; interface behaviour and the actual workbook require separate verification.
