数据透视表的公式怎么改_列出所有数据透视表公式

数据透视表的公式怎么改

A few months ago, I shared my code for listing all the formulas in an Excel workbook. The code creates a new worksheet, with details on each formula’s worksheet name, cell address, the formula and the formula in R1C1 format.

几个月前,我分享在Excel工作簿中列出所有公式的代码。 该代码创建一个新的工作表,其中包含有关每个公式的工作表名称,单元格地址,该公式以及R1C1格式的公式的详细信息。

formulalist02

数据透视表公式 (Pivot Table Formulas)

If you create calculated fields or calculated items in a pivot table, those formulas are not included in the list of worksheet formulas.

如果您在数据透视表中创建计算字段计算项目 ,则这些公式将不包括在工作表公式列表中。

However, you can manually create a formula list, for any pivot table, by using a built-in pivot table command.

但是,您可以使用内置的数据透视表命令为任何数据透视表手动创建公式列表。

列出Excel 2010中的公式 (List the Formulas in Excel 2010)
  1. Select any cell in the pivot table.

    在数据透视表中选择任何单元格。
  2. On the Ribbon, under the PivotTable Tools tab, click the Options tab.

    在功能区上,在“数据透视表工具”选项卡下,单击“选项”选项卡。
  3. In the Calculations group, click Fields, Items & Sets

    在“计算”组中,单击“字段,项目和集”
  4. Click List Formulas.

    单击列表公式。
pivotformulaslist01

A new sheet is inserted in the workbook, with a list of calculated fields, followed by a list of calculated items.

将在工作簿中插入一个新的工作表,其中包含计算字段的列表,然后是计算项目的列表。

pivotformulaslist02

Only the formulas in the selected pivot table are listed. If you want to see all the formulas, in all the pivot tables, you’d have to repeat these steps for each pivot table.

仅列出所选数据透视表中的公式。 如果要查看所有数据透视表中的所有公式,则必须为每个数据透视表重复这些步骤。

宏列出所有数据透视表中的所有公式 (Macro Lists All Formulas in All Pivot Tables)

Instead of creating the lists manually, you can use programming to create the list for you. I’ve posted sample code and a workbook on my Contextures site, and you can download that to test the macro.

您可以使用编程为您创建列表,而不必手动创建列表。 我已经在Contextures网站上发布了示例代码和工作簿,您可以下载它们以测试宏。

The code adds a new sheet to the workbook, with a list of all the pivot table formulas, with their location and formula.

该代码向工作簿中添加了一个新工作表,其中列出了所有数据透视表公式以及它们的位置和公式。

pivotformulaslist

To download the sample file, go to the Pivot Table Calculated Fields page, and go to the “List All Formulas For All Pivot Tables” section.

要下载示例文件,请转到“ 数据透视表计算字段”页面,然后转到“列出所有数据透视表的所有公式”部分。

观看列表公式视频 (Watch the List Formulas Video)

To see the steps for creating a list of formulas, for the selected pivot table, watch this short video tutorial.

要查看为选定的数据透视表创建公式列表的步骤,请观看此简短的视频教程。

演示地址

翻译自: https://contexturesblog.com/archives/2013/02/19/list-all-pivot-table-formulas/

数据透视表的公式怎么改

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值