Lỗi Pivot table field name already exists

Reference Isn't Valid Error

Recently, when I opened an Excel file, an error message appeared, "Reference isn't valid".

There was a chart behind the message, and I (incorrectly) assumed that was the problem. However, the error turned out to be a pivot table problem - the source data table was broken!

I had to reformat the data as a named table, and that fixed things. See the details below, if you run into a similar problem.

Lỗi Pivot table field name already exists

Pivot Table Source Data Problem

In my workbook, a pivot table was causing the problem. The pivot table's source data was a table that no longer existed in the workbook. As soon as I fixed the table, the error message stopped appearing

Fixing the Problem - Details

To fix the problem I did these two things, and there are detailed steps below:

-- 1) Located the pivot table's data source

-- 2) Found and fixed the problem in the source data

1) Locate Pivot Table Data Source

To find the data source of a pivot table, follow these steps:

  1. Select any cell in the pivot table.
  2. On the Ribbon, click the PivotTable Analyze tab
  3. In the Data group, click the top section of the Change Data Source command.

The Change PivotTable Data Source dialog box opens, and you can see the the source table or range in the Table/Range box. For my pivot table, it showed a table name - Table1

Usually, that table or range is highlighted in the background, but I could still see the pivot table in the background. So, I clicked the Cancel button, and went to the sheet where the data was stored.

Lỗi Pivot table field name already exists

2) Find Problem in Source Data

When I checked the data sheet, there was no table - just a list on the worksheet. Nobody else uses the workbook, so how did the formatted Excel table go back to being just a list?

Table Removed During Repair

  • Excel had crashed earlier in the day, and the workbook was automatically repaired.
  • There must have been some corruption in that table, so Excel removed the table structure
  • The "We repaired your workbook" message doesn't give many details, and I hadn't noticed the missing table.

Fix Problem in Source Data

To fix the Reference isn't valid error, I formatted the list as an Excel table again.

  • Note: Excel automatically named the table as Table1 again, but if it hadn't, I could have renamed the new table, as Table1.

Next, I checked the Change PivotTable Data Source dialog box again, and the table was correctly highlighted in the background.

  • In the screen shot below, you can see the "marching ants" border at the top right of the table data.

I clicked Cancel, and the error message didn't appear again, when I refreshed the pivot table.

Lỗi Pivot table field name already exists

Facebook

邮箱或手机号 密码

忘记帐户?

新建帐户

无法处理你的请求

此请求遇到了问题。我们会尽快将它修复。

  • 返回首页

  • 中文(简体)
  • English (US)
  • 日本語
  • 한국어
  • Français (France)
  • Bahasa Indonesia
  • Polski
  • Español
  • Português (Brasil)
  • Deutsch
  • Italiano

  • 注册
  • 登录
  • Messenger
  • Facebook Lite
  • Watch
  • 地点
  • 游戏
  • Marketplace
  • Meta Pay
  • Oculus
  • Portal
  • Instagram
  • Bulletin
  • 本地
  • 筹款活动
  • 服务
  • 选民信息中心
  • 小组
  • 关于
  • 创建广告
  • 创建公共主页
  • 开发者
  • 招聘信息
  • 隐私权政策
  • Cookie
  • Ad Choices
  • 条款
  • 帮助中心
  • 联系人上传和非用户
  • 设置
  • 动态记录

Meta © 2022

Here are some problems that our users have asked and received explanations on

Need to auto-fit column header in pivot table drill down. So, when senior management clicks on a field in the pivot table to see the details, the formatting is already set.

Solved by O. H. in 27 mins

Not able to delete Pivot table using office interop plugin. Receiving the following error when trying to change pivot cache . "The PivotTable field name is not valid. To create a PivotTable report, you must use data that is organized as a list with labeled columns. If you are changing the name of a PivotTable field, you must type a new name for the field"

Solved by Z. S. in 25 mins

Hello, within a pivot table, I need to convert a field within row labels into a value (needs to calculate the sum of the input data), having already another selected field in the value column as sum. How can I have to values on X & Y axe in a pivot table diagramm? Please help, I'm lost!

Solved by O. J. in 16 mins

I need help creating a calculated field in my pivot table using data from the pivot table.

Solved by S. Q. in 25 mins

I keep receiving error message" the name 'monthname' already exists. click yes to use that version of the name, or click no to rename the version of 'monthname' you're moving or copying.

Solved by O. S. in 20 mins