A pivot table double counts because the data underneath it contains rows that mean the same thing more than once — duplicate source records, a column with repeated IDs, or an item placed in multiple categories — or because the value field is being aggregated in the wrong way (for example, a Count of a formula column rather than a Sum of the actual numbers). The fix is almost always in the source data or the field layout, not in the pivot table itself. Find the duplicated rows, or switch the value field to the aggregation you actually intended, and the totals fall back in line with a hand count.

Pivot tables never invent numbers. They add up every source row that falls inside the rows, columns and filters you selected. So when your grand total looks inflated, the culprit is somewhere in the rows being summed. The steps below work in Excel, Google Sheets, LibreOffice Calc and most spreadsheet and BI tools; menu labels differ slightly by version, device and region, so look for the closest matching name.

What You'll Need

  • Your spreadsheet open, with the pivot table and its source data visible in separate tabs
  • The source table converted to a proper table or range with a single header row and no blank separator rows
  • A calculator, or the =SUM() result of a known column, so you can compare the pivot total against the raw total
  • Optionally a helper column in the source to flag duplicates

Step-by-Step

  1. Write down the true total first. In a blank cell on the source sheet, run =SUM( of the number column you are pivoting, or =COUNTA( of the ID column if you are counting. If the pivot grand total matches this, the pivot is not double counting — your expectation of what the total should be is wrong, often because of filtering. If it does not match, continue.
  2. Look at the row count. Select the source ID column and compare the status bar count with the number of unique values. A quick way: add a helper column with =COUNTIF($A$2:$A$1000,A2) next to the ID column and fill it down. Any value above 1 marks a duplicate row. Rows like this are the number one cause.
  3. Check whether the value field is being summed or counted. Click the field in the Values area and open Value Field Settings (Excel) or the summarise-by option (Sheets, Calc). A pivot that double counts usually has Count entered where Sum belongs, or the reverse. If your number column is stored as text, Sum silently disappears from the list — convert the column to numbers first, since text digits count as separate items rather than adding up.
  4. Check for a field with many-to-many relationships. Placing a multi-value field on Rows (tags, categories, a comma-separated list) makes each source row appear under each value, so the amount is counted once per tag. If an order of 100 is labelled both “Wholesale” and “Priority”, the pivot reports 200. Reduce the field to one value per row in the source, or accept that the total is a tag count, not a money total.
  5. Look for repeated header rows and blank rows. If the source is a range rather than a table and contains copies of the header mid-sheet, or subtotal rows already baked into the data, those get summed alongside the raw records. Delete them, or point the pivot at just the raw detail rows.
  6. Check for merged cells and hidden columns. Merged cells cause pivot fields to treat blank cells oddly, and hidden rows are still included in a pivot over a table. Unmerge cells and confirm nothing is being silently pulled in.
  7. Refresh the pivot. After any source edit, right-click the pivot and choose Refresh (Refresh All for every pivot). Stale data keeps old duplicates alive even after you have cleaned them.
  8. Make the source a table. Select the range and use Insert > Table on Excel, or the equivalent “format as table” in Sheets and Calc. Tables expand automatically and row references become stable, which prevents the “source keeps growing” variant of double counting where two ranges overlap.
  9. Rebuild the pivot from scratch if needed. Once the source is clean, delete the old pivot and insert a new one covering the full table. This removes any stale manual filter or calculated item that may be adding rows twice.
  10. Test with a single filter value. Filter to one customer or one day and compare that subtotal with =SUMIF() on the source. When the small slice matches, the whole pivot is trustworthy.

Common Mistakes

The most frequent error is fixing the pivot instead of the data. Cleaning the pivot layout will not remove duplicated source rows; they come back on every refresh. Second is confusing Count with Sum: “Count of Amount” will count rows and report something wildly different from the money value, and it is not technically a bug, just the wrong aggregation. Third is leaving subtotal rows in the data and then grouping — you then sum both the detail and the subtotal. Fourth is overlapping ranges where a second pivot covers a bigger area than intended and picks up both tables. Fifth is adding a calculated field that references a field already in Values, so the same number is added twice inside the calculation. Finally, many people forget that Google Sheets and Calc need an explicit refresh after source edits just as Excel does, and then draw conclusions from stale numbers.

Tips

Always keep a raw data tab and never build the pivot directly on a sheet you type new rows into without a fixed table. Give each record a unique ID column and use it as the base for any row count. Use Remove Duplicates (Excel) or a UNIQUE() formula in Sheets to inspect what the cleaned data set should look like. When a source system exports data with line items and header totals in the same column, split them into separate columns before pivoting. If you rely on the total for reporting, build a reconciliation cell beside the pivot — =SUM of the source minus the pivot grand total — so any drift is visible at a glance. And when a field can hold several values per row, resist pivoting on money unless you first decide which single value counts.

Troubleshooting

The pivot still doubles after cleaning. Something is outside your eyeshot: a second source range, a defined name, or a pivot that has its own cached copy. Use Refresh All, then check that the pivot's source address covers only the clean table. If the number is still wrong, rebuild the pivot, which discards the cache.

Sum is missing from the Value Field Settings list. The number column is stored as text, usually because of stray spaces, apostrophes or a comma decimal separator. Convert with Value or a text-to-columns pass, then refresh.

Only some rows look duplicated. Your duplicate key may not be the ID — sometimes two records share a customer and date but are genuinely separate orders. Check whether the duplicates are true repeats (same amount, same date) or legitimate second entries. Only remove the former.

The grand total does not match the sum of visible subtotals. A filter or a manual grouping is excluding rows from the display but the grand total still includes them, or vice versa. Clear filters and reapply them one at a time.

Working with numbers pulled from another system. Exports are a classic source of double counting because the same row can appear with two slightly different spellings of a category. Standardise the labels first; the pivot will then group them correctly.

Frequently Asked Questions

Why does my pivot table total more than the sum of the column?

Because the pivot is including rows that sit outside the range you summed, are hidden from your view, or are present more than once in the source. Compare =SUM of the exact same range the pivot covers, then look for duplicate rows within it.

Can a pivot table count the same row twice on its own?

Not for a single field on Rows or Columns. It can appear to when a multi-value field places one row into several groups, because the row then contributes to each group's total. The source row is only entered once, but its value is counted once per group.

How do I stop duplicates from coming back after I clean the data?

Fix the source system or the export routine, not the sheet. If the file is re-exported each period, add a duplicate check as a standing step before the pivot is refreshed, or import into a table that enforces a unique key.

Does refreshing the pivot cause double counting?

No. Refresh only re-reads the source; it cannot add rows that are not there. If totals change after a refresh, the source changed — usually new rows were added, possibly duplicated ones.

Why does Count show a different number than Sum?

Count returns how many rows or non-empty cells are in the group. Sum adds their values. A count of 12 rows and a sum of 1,200 are both correct if each row holds an average of 100 — they just measure different things.