Sub topic 12
Limitations and Troubleshooting
This chapter assumes you can navigate Google Sheets, create basic formulas, and read a pivot table. It also assumes your source data has one header row and one record per row.
Grouping and calculated fields are useful because they change how a pivot table presents and summarizes data. They do not repair problems in the source range. Most incorrect results come from source data types, blank values, or choosing the wrong aggregation order.
Check the source before changing the pivot
A reliable source table has:
- One header row with unique, nonblank names.
- One record per row.
- No merged cells.
- No completely blank rows inside the data.
- Consistent data types in each column.
- Real dates in date columns, not date-looking text.
For example, a date that looks like 2026-01-05 may still be text. A real date is stored as a date value and can usually be formatted with the toolbar or tested with a formula such as =ISNUMBER(A2).
| Problem in source data | Likely pivot-table symptom | Fix |
|---|---|---|
| Date stored as text | Date grouping is unavailable or incorrect | Convert the text to dates |
| Blank category | An empty row or item appears | Fill, filter, or intentionally remove blanks |
| Numbers stored as text | SUM or numeric grouping gives wrong results | Convert the values to numbers |
| Duplicate headers | Fields are confusing or difficult to select | Rename headers uniquely |
After correcting the source, refresh the pivot table or recreate it from the corrected range. If new rows are added later, make sure the pivot source range includes them.
Diagnose grouping problems
Manual groups depend on the exact item labels. West and west may be treated as different items, and extra spaces can create another separate item. Clean labels before grouping, or inspect the row and column items carefully.
A manual group can also hide detail that you still need for checking. Temporarily remove the group or expand the grouped item to compare its total with the original records. Rename a group with a label that explains its members, such as Priority regions, rather than a vague name such as Group 1.
Date groups require actual dates. They also depend on the date values that remain after filters are applied. If a month appears to be missing, check whether a filter removed all records for that month. Remember that a month group may combine dates from different years unless the year is also included.
Numeric grouping has similar limits. A rule such as intervals of 100 creates buckets based on the chosen starting point and interval. Values at a boundary belong to one specific bucket according to the rule. Check the boundary values, especially when a result seems off by one item.
Check calculated fields and aggregation order
A calculated field uses source column names, not the visible label of a pivot result. For example, a Profit field can use:
=Revenue - CostIf a header contains spaces, quote the header name:
='Unit Price' * QuantityA calculated field does not automatically make every metric mathematically appropriate. Consider revenue per unit. This formula calculates a ratio after the source columns have been aggregated:
=SUM(Revenue) / SUM(Units)That result is usually different from adding each row's revenue-per-unit value. A small order-of-operations check helps:
- Calculate the expected total revenue and units for one group.
- Divide total revenue by total units.
- Compare that result with the pivot value.
- If the values differ, check whether the field is summing row-level ratios instead of using a custom aggregate.
Know the feature limits
Grouping changes categories. It does not create missing source records or preserve every detail in a compact summary. Filters can hide records, and a pivot table may display a blank category when the source contains blank cells.
Calculated fields are limited to the fields and formula behavior supported by the pivot editor. Complex row-by-row logic may be clearer in a helper column in the source table. A helper column is also easier to test and reuse outside the pivot table.
When combining features, verify both levels:
- Check a grouped total against the source records in that group.
- Check a calculated field against a hand calculation.
- Check grand totals separately from displayed subtotals.
- Confirm that filters apply to the intended source field.
Exercise
A pivot table shows a revenue-per-unit value that is larger than expected after grouping regions. What should you check first?
Show answer
Check whether the value is summing row-level ratios. Compare it with SUM(Revenue) / SUM(Units) for the group, and use a custom aggregate when the ratio should be calculated from the grouped totals.