数据透视表和数据交叉表
After you update the source data for a pivot table, and refresh the table, some of the old data might still appear in the pivot table drop downs. For example, you changed a product name from Whole Wheat to Whole Grain, and now both names show up in the pivot table’s Product drop down.
更新数据透视表的源数据并刷新表后,某些旧数据可能仍会出现在数据透视表下拉列表中。 例如,您将产品名称从“全麦”更改为“全谷物”,现在这两个名称都显示在数据透视表的“产品”下拉列表中。
防止Excel 2007中的旧项目 (Prevent Old Items in Excel 2007)
You can prevent old items from being retained in an Excel 2007 pivot table, by changing on of the pivot table options
通过更改透视表选项,可以防止旧项目保留在Excel 2007透视表中
- Right-click a cell in the pivot table 右键单击数据透视表中的单元格
- In the pop-up menu, click PivotTable options 在弹出菜单中,单击“数据透视表”选项
- Click the Data tab 点击数据标签
In the Retain Items section, select None from the drop down list.
在“ 保留项目”部分中,从下拉列表中选择“ 无 ”。
- Click OK, then refresh the pivot table. 单击确定,然后刷新数据透视表。
The old items will disappear from the pivot table drop downs, and won’t appear again.
旧项目将从数据透视表下拉菜单中消失,并且不会再次出现。
清除Excel 2003中的旧项目 (Clear Old Items in Excel 2003)
To prevent old items in Excel 2003 pivot tables, you can use programming to change the MissingItemsLimit setting.
为了防止Excel 2003数据透视表中的旧项目,可以使用编程来更改MissingItemsLimit设置 。
Or, you can manually clear the old items, by following these steps:
或者,您可以按照以下步骤手动清除旧项目:
- If you manually created groups that include the old items, ungroup those items. 如果您手动创建了包含旧项目的组,请取消对这些项目的分组。
- Drag the pivot field that contains old items out of the pivot table. Also remove it from any other pivot tables that use the same pivot cache. 将包含旧项目的数据透视表字段拖出数据透视表。 还要从使用同一数据透视表缓存的任何其他数据透视表中将其删除。
- Refresh the pivot table. 刷新数据透视表。
- Drag the pivot field back to the pivot table. 将数据透视表字段拖回到数据透视表。
This will clear the existing old items, but won’t prevent more from appearing later.
这将清除现有的旧项目,但不会阻止更多内容稍后出现。
观看视频 (Watch the Video)
To see the steps to change the retain items setting in Excel 2007, you can watch this short video.
若要查看在Excel 2007中更改保留项设置的步骤,可以观看此简短视频。
翻译自: https://contexturesblog.com/archives/2010/02/05/old-items-appear-in-pivot-table-drop-downs/
数据透视表和数据交叉表