How to create a new pivot table style

It’s easy to create your own pivot table style, which you can then apply to one or more pivot tables.

Lets take a look.

The easiest way to create a custom pivot table style is to first apply a built-in style and then duplicate and customize that style as needed.

For example, let’s first apply the xxx style to this pivot table. You can check that this style is applied by clicking any cell in the pivot table and then checking the PivotTable styles group. The applied style will appear highlighted.

Once  an existing style is applied, duplicate that style. You can duplicate a style by right-clicking, and choosing Duplicate from the menu. Then, give the duplicated style a descriptive name. Let’s use Blue Gray.

The new style will appear in the upper left of the PivotTable styles group. It will not be applied to the pivot table, so it’s important to do apply the new style next.

Once applied, the new style will be highlighted, and Excel will display it’s name when you hover over the style.

Once you have a new pivot table style created and applied to your pivot table, you can easily customize the style as you like. For example, let’s change the style so that the shading on the category subtotal rows is gray instead of blue.

First,  right click the style and choose Modify from the menu. You’ll see that pivot table styles are somewhat complex - there are a lot of individual elements that can be styled. However, notice that only the bolded elements are in use for any given style. If we click through the list, we see the formatting defined for each bolded table element. Non-bolded elements have no formatting defined.

In this case, the element we want to style is Row Subheading 1. We want to switch the shading from blue to gray, so we need to change the fill. Notice that the small preview thumbnail is updated as we work.

After we click OK twice, the new setting takes effect.

You can use this same approach to customize any defined element in the table. If we add region as a row label above Category, we  see still get the gray shading on the first row subheading, but not the second. Let’s edit the style again to make the second row subheading shaded orange.

Now our style correctly applies formatting for both levels.

To test that the new style works correctly on a new pivot table, let’s clear and rebuild this pivot table from scratch.

When we apply our custom style, we see all the formatting we defined.

Author: 
Dave Bruns