List All Pivot Table Formulas
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.
Pivot Table Formulas
However, you can manually create a formula list, for any pivot table, by using a built-in pivot table command.
List the Formulas in Excel 2010
- Select any cell in the pivot table.
- On the Ribbon, under the PivotTable Tools tab, click the Options tab.
- In the Calculations group, click Fields, Items & Sets
- Click List Formulas.
A new sheet is inserted in the workbook, with a list of calculated fields, followed by a list of calculated items.
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.
The code adds a new sheet to the workbook, with a list of all the pivot table formulas, with their location and formula.
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, please watch this short video tutorial.
Or, watch on YouTube: Get a List of Excel Pivot Table Formulas