Fixing Common Pivot Table Errors in Excel

Fix the pivot table spill error, unexpected blank values and invalid field name messages in Excel, with causes, checks and step-by-step repairs.

A pivot table is only as reliable as the data and space behind it. When something goes wrong, you might see a pivot table spill error, a (blank) row you did not expect, or a message saying the field name is not valid. Each message points to a different problem, and fixing the wrong one wastes time.

This guide is for anyone who builds pivot tables in Excel, from first-time users to people who maintain reports for a team. You will learn how to tell the three errors apart, what usually causes each one, and how to repair it without rebuilding the report from scratch.

Most of these errors start in the source data or in the cells around the pivot table. The short answer below gives you the quickest route, and the sections after it walk through diagnosis and fixes in detail.

How do you fix a pivot table spill error and other pivot errors? The short answer

Check the cells the pivot or formula needs before you change anything else, then clean the source data and refresh. Most pivot table errors are caused by blocked space, empty or text-stored cells, or header names that do not work as field names.

Your situationWhat to doWhy
The pivot will not place, or Excel says it overlaps another reportMove it to an empty area with blank rows and columns below and to its rightA pivot table needs its own cells to expand into
A formula shows #SPILL! near the pivotClear the cells the formula needs to fill, or move the formulaDynamic array results cannot write over cells that already hold content
A (blank) row or blank values appearFill or delete empty source cells, then refreshEmpty cells in a row or column field become a (blank) item
"Field name is not valid" appears when you add or rename a fieldGive every source column a unique, non-empty headerBlank, merged or duplicate headers confuse the field list
Totals look too low or numbers are ignoredConvert numbers stored as text into real numbersText cells are not summed like numeric cells

Figure out which problem you have

Match the symptom to the likely cause before you start changing data. The "How to confirm" column tells you what to look at.

SymptomLikely causeHow to confirm
#SPILL! appears in a formula cellA dynamic array formula cannot fill its output areaSelect the formula and look at the area it wants to fill. If any cell there has content, that is the block.
The pivot will not create, or an overlap message appearsThe target area already has data or formattingScroll below and to the right of the planned location for existing content.
A (blank) row appears in the pivotAt least one source cell in a row or column field is emptyFilter the source column for empty cells, and check the pivot's field list for a (blank) entry.
Values are blank or lower than expectedNo matching data, or numbers stored as textFind the source rows for that label. Text values usually sit left-aligned in their cells.
"Field name is not valid" when adding or renamingBlank, merged, duplicate or clashing header namesRead the source header row cell by cell, and check for merged header cells.
Totals miss your newest rowsThe source range does not include themCompare the range the pivot reads with the last row of your data.

Fix it step by step

The three errors need different repairs, so each has its own short list. Start with the one that matches your symptom.

Fix a pivot table spill error

A pivot table rarely produces #SPILL! by itself. The error usually comes from a dynamic array formula near the pivot, or from a pivot that cannot expand into occupied cells.

  1. Find the cell that shows #SPILL!. If it is a formula, select it and note which cells it wants to fill.
  2. Clear any cells in that area that you do not need, or move the formula to a spot where its output has room.
  3. If you see an overlap message instead, move the pivot table to an empty area with blank rows and columns on its right and bottom.
  4. Refresh the pivot table and confirm the error is gone before you move on.

Fix blank values and (blank) rows

Blank output almost always starts with the source data. Clean the data first, then check the pivot's settings.

  1. Scroll through the source range and find empty cells in any field you use as a row or column label. Fill them with a meaningful label such as "Unknown", or delete the rows if they are not real records.
  2. Look for numbers stored as text. Convert them to real numbers so the value area can sum them.
  3. Refresh the pivot table so it reads the cleaned source.
  4. In the pivot's filter list for the field, clear the (blank) entry only after you have confirmed no real records are hidden in it.

Fix "pivot table field name is not valid"

This message means Excel cannot use a header as a field. The fix is almost always in the header row of the source data.

  1. Check the header row for any empty cell and give it a name.
  2. Look for duplicate names, and rename one so every header is unique.
  3. Unmerge any merged header cells. Only the first cell of a merged range keeps its name, so the others read as blank.
  4. When you rename a value field, choose a name that differs from every source column. For example, use "Total Sales" when the source column is "Sales".
  5. Refresh the pivot table and try the field again.

Prevent it next time

Most of these errors come back if the source data stays messy. A few habits keep pivot tables working.

  • Keep one header row. Put headers in a single row with no merged cells, and give every column a unique name.
  • Use an Excel table as the source. A table expands when you add rows, so new data joins the pivot without changing the range by hand.
  • Avoid blank rows inside the data. A blank row can split the range or create a (blank) item.
  • Store numbers as numbers and dates as dates. Check a sample of cells before you build the pivot.
  • Leave room around the pivot. Place it on its own sheet, or leave empty rows and columns below and to its right.
  • Refresh after every data change. A pivot table shows the data it last read, not what is on the sheet now.

If your data comes from a PDF, the PDF editor in the OmniDoc desktop client can export tables to Excel. Check the headers and number formats after the export, because a converted table often needs the same cleanup described above.

❓ FAQ

1. Why does my pivot table show a (blank) row when my data has no empty cells?

A cell may contain a space or other invisible character that makes it look filled while the pivot treats it as blank. Filter the source column and look for entries that appear empty. Delete the characters or the extra spaces, then refresh.

2. Is a pivot table spill error a bug in Excel?

Usually not. The error means a formula or the pivot has no room to expand into, so the fix is to clear or move the blocking cells.

3. Will refreshing the pivot table add rows I typed below my data?

Only if the source range includes them. Convert the data into a table, and new rows will be picked up when you refresh.

4. Can I build a pivot table directly from a PDF?

Not directly. Export the table to Excel first, then clean the headers and numbers before you create the pivot.

📝 Summary

Most pivot table spill errors, blank values and invalid field name messages come from blocked cells, messy source data or unusable headers. Check the target area and the source first, fix what you find, then refresh. Build the source as a clean table, and the same errors are much less likely to return.

Open OmniDoc to work on your spreadsheets

Updated 2026-11-04