Lỗi the pivottable field name is not valid. to create a pivottable report
Reference Isn't Valid ErrorRecently, 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. Pivot Table Source Data ProblemIn 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 - DetailsTo 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 SourceTo find the data source of a pivot table, follow these steps:
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. 2) Find Problem in Source DataWhen 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
Fix Problem in Source DataTo fix the Reference isn't valid error, I formatted the list as an Excel table again.
Next, I checked the Change PivotTable Data Source dialog box again, and the table was correctly highlighted in the background.
I clicked Cancel, and the error message didn't appear again, when I refreshed the pivot table. I am getting " I ran a macro and found error pivot table. But strangely that sheet doesn't have any Pivot or its hidden. Is there a way I can find and
Tho Vu 1,2242 gold badges6 silver badges20 bronze badges asked Aug 21, 2020 at 12:53
This error message usually appears because one or more of the heading cells in the source data is blank. To create a pivot table, you need a heading for each column. Admitting that I do not have any further background details on your situation, you could try the following:
answered Aug 21, 2020 at 18:39
Malte SusenMalte Susen 7062 gold badges9 silver badges33 bronze badges 2 This page has a macro that will list the pivot tables in a workbook. I'm not familiar with a way to find them from the ribbon. answered Aug 21, 2020 at 18:55
I don't think this will help in every case, but I got this error and was only able to get rid of it by recreating the pivot table (which means the source data wasn't the problem in my case). answered Nov 29, 2021 at 22:16
Dwayne DriskillDwayne Driskill 1,4601 gold badge13 silver badges19 bronze badges |