top of page

You are learning PivotTables in MS Excel

How to use advanced PivotTable features like sets and calculated sets?

Using Sets and Calculated Sets in PivotTables

Sets in PivotTables allow you to group together specific items from a field for easier analysis. Here's how to create and use them:

1. Access the "Sets" Menu: Right-click on a field name in the PivotTable Fields list.
2. Choose "Set": Select "Set" from the context menu.
3. Create a New Set: In the "Create Set" dialog box, choose "Create a New Set."
4. Select Items: Check the boxes next to the items you want to include in the set. You can also use the "Search for a member" box to find specific items.
5. Name Your Set: Enter a descriptive name for your set in the "Name" box.
6. Click OK: Click "OK" to create the set.

Calculated Sets take things a step further. They allow you to define a dynamic set based on a formula, including items that meet certain criteria.

1. Access the "Sets" Menu: Similar to creating a regular set, right-click on a field name in the PivotTable Fields list and choose "Set" from the context menu.
2. Choose "Create Calculated Set": In the "Create Set" dialog box, select "Create a Calculated Set."
3. Define the Formula: In the "Formula" window, enter a formula using the field names and Excel functions to define the criteria for your set membership. For example, you could create a set of products with a price greater than $100 using the formula `=Price > 100`.
4. Name Your Set: Provide a clear name for your set in the "Name" box.
5. Click OK: Click "OK" to create the calculated set.

Using Sets in PivotTables:

Once you've created sets, you can use them in various ways:

* Filter Data: Drag the set to the Filters area of the PivotTable to filter the data based on the items in the set.
* Create Custom Fields: Use sets as part of calculations to create custom fields within your PivotTable. For example, you could create a field showing "Sales from Set A" by using the SUM function and referencing your set.

Benefits of Sets and Calculated Sets:

* Simplify Analysis: Sets and calculated sets make it easier to analyze specific groups of data without manipulating the original data source.
* Dynamic Calculations: Calculated sets allow for dynamic filtering based on specific criteria, offering greater flexibility in your analysis.
* Improved Organization: Organizing data into sets keeps your PivotTable cleaner and easier to understand.

By mastering Sets and Calculated Sets, you can unlock a new level of control and flexibility in your data analysis with PivotTables.

bottom of page