透视表二级菜单
Old items might still appear in pivot table drop down lists, even after you remove the items from the source data. Here’s how to stop fix that problem – watch the short video, or see the written steps below.
即使从源数据中删除项目,旧项目仍可能会出现在数据透视表下拉列表中。 这是停止解决该问题的方法-观看简短视频,或查看下面的书面步骤。
视频:修复数据透视表列表中的旧项目 (Video: Fix Old Items in Pivot Table Lists)
This video shows how to remove those old items from a pivot table, with a change to the pivot table settings. For newer versions of Excel, you’ll also see how to change your default settings, to prevent old items in all new pivot tables.
该视频显示了如何通过更改数据透视表设置从数据透视表中删除这些旧项目。 对于较新版本的Excel,您还将看到如何更改默认设置,以防止所有新的数据透视表中出现旧项目。
Video Timeline
影片时间表
- 00:00 Intro 00:00简介
- 01:37 Change a Setting 01:37更改设置
- 02:57 Default Setting 02:57默认设置
停止显示旧项目 (Stop Old Items from Showing)
To stop old items from showing in an existing pivot table, you can change one of the pivot options.
要停止旧项目在现有数据透视表中显示,您可以更改数据透视选项之一。
NOTE: This setting will affect all pivot tables that use the same pivot cache.
注意 :此设置将影响使用同一数据透视表缓存的所有数据透视表。
- Right-click a cell in the pivot table 右键单击数据透视表中的单元格
- Click on PivotTable options 单击数据透视表选项
- Click on the Data tab 点击数据标签
- In the Retain Items section, select None from the drop down list. 在“保留项目”部分中,从下拉列表中选择“无”。
- Click OK, then refresh the pivot table. 单击确定,然后刷新数据透视表。
NOTE: There is also a Clear Old Items feature in my PivotPower Premium add-in, along with many other time-saving pivot table tools.
注意 :我的PivotPower Premium加载 项中还具有“ 清除旧项目”功能,以及许多其他省时的数据透视表工具。
更改数据透视表默认设置 (Change Pivot Table Default Setting)
To keep old items from appearing the new pivot tables that you build, you can also change that pivot option in your default settings.
为了防止旧项目出现在您构建的新数据透视表中,您还可以在默认设置中更改该数据透视表选项。
NOTE: This feature is only available in Excel for Office 365, or Excel 2019 or later
注意:此功能仅在Office 365的Excel或Excel 2019或更高版本中可用
Follow these steps to change the default pivot table settings.
请按照以下步骤更改默认数据透视表设置。
- At the top of Excel, click the File tab 在Excel顶部,单击“文件”选项卡
- Click Options 点击选项
- In the Category list, click Data 在类别列表中,单击数据
- In the Data Options section, click Edit Default Layout button 在“数据选项”部分中,单击“编辑默认布局”按钮
- Click on PivotTable options 单击数据透视表选项
- Click on the Data tab 点击数据标签
- In the Retain Items section, select None from the drop down list. 在“保留项目”部分中,从下拉列表中选择“无”。
- Click OK, three times, to close all the windows. 单击确定,三次,以关闭所有窗口。
有关旧物品的更多信息 (More Info on Old Items)
If your pivot table already contains old items, there are steps on my Contextures site, that show how to remove the old items.
如果您的数据透视表已经包含旧项目,那么我的Contextures网站上有一些步骤,显示如何删除旧项目 。
There are also macros that you can use, to:
您还可以使用以下宏:
change the Retain Item settings for all pivot tables in the workbook
更改工作簿中所有数据透视表的“保留项目”设置
change Excel’s default settings for pivot tables (Office 365 or Excel 2019 and later)
更改数据透视表的Excel默认设置 (Office 365或Excel 2019及更高版本)
To get this information, go to the Clear Old Items page on my Contextures site.
要获取此信息,请转到Contextures网站上的Clear Old Items页面 。
获取工作簿 (Get the Workbook)
To get the free workbook, go to the Clear Old Items page on my Contextures site.
要获得免费的工作簿,请转到Contextures网站上的Clear Old Items页面 。
- The download file has sample data and pivot tables. The zipped file is in xlsm format, and contains the macros from that page. 下载文件包含示例数据和数据透视表。 压缩文件为xlsm格式,其中包含该页面中的宏。
- To test the macros, be sure to enable macros, if prompted, when you unzip and open the workbook. 要测试宏,请确保在解压缩并打开工作簿时启用宏(如果出现提示)。
翻译自: https://contexturesblog.com/archives/2020/08/06/clear-old-items-from-pivot-table-drop-downs/
透视表二级菜单