Most Excel pivot table errors fall into four buckets: a source range that no longer covers your data, a field that was renamed or deleted, a value field that is summing text instead of numbers, or a refresh that has not been run since the data changed. The fix is almost always to check the source range first, then refresh, then look at the field settings. Below is the practical order to work through, plus the specific repairs for the error values you will actually see in the cells.

What You'll Need

  • Excel for Windows or Mac (the steps below are written for the desktop app; the web version has fewer pivot options and some dialogs differ)
  • A worksheet with a clean, single-header-row data table
  • Your original source data still present and reachable in the same workbook or a connected file
  • Write access to the workbook if you need to change the source range

Step-by-Step

  1. Identify the error type first. Click the cell showing the problem. A #REF! means a field the pivot depended on has been deleted or the source range shrank. A #NAME? usually means a calculated field refers to a name that no longer exists. A #DIV/0! means a calculated field is dividing by zero or by a blank. A #VALUE! means a value field is trying to do maths on text. Knowing which one you have saves you from redoing the whole pivot.
  2. Check the source range. Click anywhere in the pivot, then go to PivotTable Analyze > Change Data Source (on Mac it is PivotTable Analyze > Change Data Source as well). Confirm the range shown covers every row and column of your data, including any rows you added at the bottom. If it does not, either drag the range to fit or, better, convert the source to an Excel Table with Ctrl+T (Cmd+T on Mac) and point the pivot at the table name. A table expands automatically, which prevents this error from coming back.
  3. Refresh the pivot. Right-click inside the pivot and choose Refresh, or press Alt+F5 on Windows. If nothing changes, use PivotTable Analyze > Refresh > Refresh All so every connected pivot and data model updates together.
  4. Fix deleted or renamed fields. If the field list shows a field with a warning icon or the pivot shows #REF!, open PivotTable Analyze > Field List and drag the broken field out of the Rows, Columns, Values or Filters area, then drag the correct field back in. Renaming a header in the source is enough to break the link, so keep header text stable or re-add the field after renaming.
  5. Correct the value field summary. If a column of numbers returns 0 or a count instead of a sum, right-click the value in the pivot and choose Value Field Settings. Check that Summarize Values By is set to Sum (Excel defaults to Count when the column contains any blank or text cell). Then click Number Format to set decimals and thousands separators.
  6. Repair calculated fields. Go to PivotTable Analyze > Fields, Items & Sets > Calculated Field. Select the broken field, review the formula, and either correct the field references or delete it and recreate it. Calculated fields cannot use cell references or functions that return text, so keep formulas to arithmetic on existing fields.
  7. Deal with blanks and text in number columns. Go back to the source data, filter each numeric column for blanks and for text, and either fill or remove those cells. A single stray space or an apostrophe before a number turns it into text and forces the pivot to count rather than sum.
  8. Handle refresh errors from external sources. If the pivot is fed from another workbook or a database, use Data > Queries & Connections to check the connection is still valid, the file path has not moved, and any credentials are current. Then refresh again.
  9. Rebuild only as a last resort. If the pivot is badly corrupted, copy the sheet to a new workbook, delete the pivot, and insert a fresh one from the table. Rebuilding takes a minute and is more reliable than chasing a broken cache.

Common Mistakes

  • Selecting a fixed range like A1:D200 when the data grows past row 200. Use a table instead.
  • Leaving blank rows or subtotal rows inside the source data. Pivot tables treat a blank row as the end of the data.
  • Merged cells in the header row. Every header must be a single cell with a unique name.
  • Assuming a refresh happened automatically. Pivots do not refresh on their own unless you set it under PivotTable Options > Data > Refresh data when opening the file.
  • Typing over a pivot header to rename it, then wondering why the field list no longer matches. Rename in the source, then refresh.
  • Putting a text column into Values and expecting a sum. Excel will count it instead.

Tips

  • Keep one header row, no blank rows, and no totals inside the source. That single habit prevents most pivot errors.
  • Format source numbers as Number or Currency before building the pivot, so the default summary is Sum rather than Count.
  • Use PivotTable Analyze > Options > Layout & Format and tick "For error values show" to display a blank or a dash instead of #DIV/0! in calculated fields.
  • Name your source table something obvious, such as tblSales, so Change Data Source is easy to verify later.
  • Keep a copy of the raw data on a separate sheet and never edit it in place after the pivot is built.

Troubleshooting

The pivot still shows old numbers after Refresh. Check whether the pivot is connected to the data model rather than the sheet, and use Refresh All. Also confirm you are looking at the right sheet and that no filter is hiding rows.

Refresh fails with a message about the data source. Open Data > Queries & Connections, select the connection, and check its properties. If the file has moved, update the path. If the source is a shared workbook, make sure you still have permission to read it.

Field list is greyed out. The pivot may be inside a protected sheet. Unprotect the sheet (Review > Unprotect Sheet) if you have the password, then try again.

Every value shows as Count. At least one cell in that column is blank or text. Clean the column, refresh, then set Value Field Settings back to Sum.

The pivot will not accept a new column. Refresh first. If the field still does not appear, the source range does not include that column, so use Change Data Source to extend it.

File is very slow after a refresh. Large sources with many calculated fields slow down. Remove unused fields from the pivot layout, or move the source to the data model and refresh only when needed.

Frequently Asked Questions

Why does my pivot show #REF! after I delete a column?

The pivot still references the deleted field. Remove that field from the pivot layout and re-add the correct one, or undo the deletion and refresh.

Why does Excel count my numbers instead of summing them?

Because at least one cell in that column is blank or stored as text. Clean the column, refresh, then set the summary to Sum in Value Field Settings.

Do pivot tables update automatically when source data changes?

No. You must refresh manually, or enable Refresh data when opening the file in PivotTable Options.

Can I hide error values in a pivot?

Yes. In PivotTable Options, under Layout & Format, set what error values should display, such as a blank or a dash.

Why is the field list empty or greyed out?

Usually a protected sheet or a pivot whose source has been deleted. Unprotect the sheet, or use Change Data Source to point at valid data.

Is it better to rebuild a broken pivot or repair it?

Repair first by checking the source range, refreshing, and fixing field settings. Rebuild only if the pivot cache is corrupted and repairs fail.