Sub topic 12
Limitations and troubleshooting
This chapter assumes you can build a pivot table with rows, columns, values and filters. It also assumes you have used manual groups, date groups, numeric interval rules and calculated fields from the earlier chapters. Here you will learn where those features stop working, how to recognize each failure, and how to check a pivot result before you share it.
The running example is the five-row table from earlier chapters, with columns Date, Region, Product, Units, Revenue and Cost.
Know the limits before you build
Grouping and calculated fields are conveniences layered on top of a summary of your source range. They share some constraints.
- The pivot only reads the source range. A group or a calculated field cannot use information that is not in a source column. For example, you cannot group by fiscal year unless a column provides it.
- One grouping rule applies to each field. A field in the rows can be grouped manually, by date, or by numeric interval. You cannot stack two rules on the same field. To get both a year and a region bucket, group two different fields, or add a helper column to the source.
- Calculated fields work on column names, not cells. A formula such as
=Revenue - Costrefers to source headers. Cell references likeF2and ranges likeD2:D6do not make sense inside a pivot, because the formula is evaluated for every group. - Calculated fields are measures. You add them under Values. They do not appear as an item you can drag to rows, columns or filters.
- The pivot output is read-only. You change it only through the editor. Typing over a cell in the pivot, or sorting its range directly, does not work. Put your own formulas outside the pivot area, not inside it.
- The output grows and shrinks. If cells beside or below the pivot are occupied when it needs to expand, Sheets shows an error instead of overwriting them. Give the pivot a sheet of its own, or leave empty space around it.
Source data problems
Most pivot trouble starts in the source, not in the pivot editor.
Text that looks like dates
If a date column contains text, the pivot treats each distinct string as a separate item. The date group option is missing or has no effect, and sorting is alphabetical, so "10/02/2026" sorts before "2/1/2026".
A real date is right-aligned by default and shows a number if you change the format to Number. A text date is left-aligned. You can count text cells in a column with a formula:
=SUMPRODUCT(--ISTEXT(A2:A))If the result is above zero, some cells in the column are text. This also catches numbers stored as text in Units, Revenue or Cost, where the count should be zero.
To convert text dates in a helper column, use:
=ARRAYFORMULA(IF(A2:A="", "", IF(ISTEXT(A2:A), DATEVALUE(A2:A), A2:A)))Format the result as a date, then point the pivot at the helper column. DATEVALUE interprets text according to the spreadsheet's locale setting. A string such as "03/04/2026" can mean March 4 or April 3, so check a few results by eye.
Blank cells and missing headers
- Blank cells in a grouped field appear as a blank item in the pivot. Group rules cannot place a blank into a bucket sensibly, so a date group on a column with gaps shows a separate blank row. Filter the blank item out, or fill the source.
- Blank numbers contribute nothing to SUM and are skipped by COUNT and AVERAGE. In a calculated field they behave like empty values in arithmetic, so a row with Revenue but no Cost reports its full revenue as profit. A blank Cost is usually data you are missing, not a cost of zero.
- Every column in the source range needs a header, and headers should be unique. A missing or duplicated header causes errors or confusing field names in the editor.
- Merged cells and subtotal rows in the source are counted as records. A "Total" row inside the range doubles your results.
A range that does not grow
If you built the pivot on A1:F6, new rows in row 7 and below are not included. Edit the data range in the editor to use an open-ended range such as A1:F. The pivot then picks up new rows as you add them. Open-ended ranges include blank trailing rows, which is why the blank-item problem above shows up as a "(blank)" entry.
Group-specific problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Date group option is missing | The column contains text, or mixed text and dates | Convert to real dates, then right-click an item again |
| Months from different years merge into one row | You chose Month alone, which ignores the year | Use a year-month group, or add Year as a separate field |
| A manual group lost items | Source items were renamed or fixed | Re-select the items and regroup |
| An item shows ungrouped beside its group | New item name in the source after grouping | Add it to the group by hand |
| Quarters do not match the fiscal calendar | Date groups use calendar quarters | Add a helper column with your fiscal quarter and pivot on it |
| Interval buckets start at odd values | The rule's start value or interval size does not suit the data | Edit the group rule and set start, end and size |
| Numeric buckets show text or a gap | Some values are text, or fall outside the start and end you set | Clean the column, and widen the start and end |
Two of these deserve more explanation.
Month alone merges years. Grouping a date field by Month produces twelve items, January to December. January 2026 and January 2027 land in the same row. That is correct for seasonality, and wrong for a timeline. If your data spans more than one year, choose a group that includes the year, or put Year in the columns and Month in the rows.
The interval rule is a bucket, not a label. Numeric groups are shown by their range, such as 0-9 or 10-19. If the bucket values look wrong, check the interval size and whether values below the start or above the end are being collected into the first and last buckets or dropped. Open the rule and look at the numbers you entered, instead of assuming a default.
Calculated field problems
Errors in the formula
- A column name with spaces needs single quotes, as in
='Unit Price' * Quantity. Without quotes the formula fails to parse. - A header that changed in the source breaks any calculated field that used the old name. Update the formula to the new header.
- A calculated field refers to a column that is not in the source range. This happens when the data range was narrowed. Restore the range.
- Division by zero.
=Profit / Revenuein a formula returns an error for any group whose revenue is zero. Wrap it:=IF(Revenue = 0, 0, (Revenue - Cost) / Revenue). Remember the warning in the next section before you use a ratio like this.
Ratios that add up wrongly
This is the most common calculated-field mistake. A calculated field with the default Sum applies the formula to each source row first, then adds the results. For a difference such as =Revenue - Cost, that is harmless, because subtraction distributes over addition. For a ratio it is not.
Take the West region in the example table. It has two rows:
| Row | Units | Revenue | Revenue per unit |
|---|---|---|---|
| 2026-01-05 Widget | 10 | 250 | 25 |
| 2026-02-02 Gadget | 7 | 420 | 60 |
A calculated field =Revenue / Units, summarized by Sum, shows 85 for West (25 + 60), which is meaningless as a price. Averaging the two ratios gives 42.5, which is also wrong, because it weights a 7-unit row the same as a 10-unit row. The correct revenue per unit is total revenue divided by total units: 670 / 17, about 39.41.
To get that, make the calculated field aggregate first and divide second. Set the field to summarize by Custom and enter:
=SUM(Revenue) / SUM(Units)The grand total row then gives 1550 / 36, about 43.06, instead of a sum of per-row ratios. The same rule applies to margin. For margin, use =(SUM(Revenue) - SUM(Cost)) / SUM(Revenue). West gives 275 / 670, about 0.41.
Show as percentages
If you show a value as a percentage of a total, remember that the percentage is computed from the displayed summary, not from the source rows. A Show as percentage on a wrongly summed ratio gives a precise-looking wrong answer. Fix the summary first, then change the display. A percentage of grand total uses all rows that pass your filters, so a filter that hides a region changes every remaining percentage.
A checking routine
Before you trust a pivot, test it against the source with independent formulas outside the pivot.
- Compare totals. Compute
=SUM(E2:E)for Revenue and compare it with the pivot's grand total. They should match unless a filter is active. - Check one group by hand. Use
=SUMIFS(E2:E, B2:B, "West")and compare it with the West row. - Check a calculated ratio from totals. Divide the pivot's total Revenue by its total Units and compare it with the field's grand total.
- Count the records. Add a COUNT of any non-blank column. If the count is different from the number of rows in the source, you have a filtered item, a range that is too short, or blank rows.
- Look for the blank item. A "(blank)" row or column means gaps in a grouped field.
Practical recommendations
- Clean the source first. Fix text dates, spelling and blanks before you create any group.
- Prefer a helper column in the source when you need logic the pivot cannot express, such as fiscal quarters or customer tiers.
- Name calculated fields clearly, and keep a note of their formulas next to the pivot, since the editor only shows one at a time.
- Keep checking formulas outside the pivot. They cost little and catch the errors listed in this chapter.
Exercise
A pivot table on the example data has a calculated field named "Margin" with the formula =(Revenue - Cost) / Revenue and the default Sum summary. The East region has two rows: Revenue 100 and Cost 60 (January), and Revenue 600 and Cost 420 (March). What does the pivot show for East, what is the correct margin, and how do you fix the field?
Show answer
With Sum, the pivot adds the per-row margins: (100 - 60) / 100 = 0.40 and (600 - 420) / 600 = 0.30, so it shows 0.70. The correct margin aggregates first: total revenue is 700, total cost is 480, so profit is 220 and margin is 220 / 700, about 0.314. To fix it, set the field to summarize by Custom and use =(SUM(Revenue) - SUM(Cost)) / SUM(Revenue).
Exercise
You group a Date column by Month and the pivot shows only twelve rows, even though your data covers 2026 and 2027. Separately, one colleague's sheet does not offer the date group option at all. Give the cause and fix for each.
Show answer
Grouping by Month alone ignores the year, so the same month in different years merges. Use a year-month group, or add Year as a second field. The sheet with no date group option most likely has dates stored as text. Check with =SUMPRODUCT(--ISTEXT(A2:A)), convert the column to real dates (for example with DATEVALUE), and build the group again.