How to change the default PivotTable Style in a workbook, or create a new PivotTable Style. Copy a style to a different workbook, or copy and paste a pivot table as values, and keep the formatting.
When you create a pivot table, a default PivotTable Style is automatically applied. You can change the default PivotTable Style in a workbook, so a different style is automatically applied.
Follow these steps to change the default PivotTable Style for a workbook:
NOTE: The default PivotTable style selection is for the active workbook only.
A quick way to make a pivot table style look different is to apply or remove the built-in pivot table style options.
Tip: Making these simple changes might be all that you need, so try these steps, before going to the trouble of creating a new PivotTable style.
The Style options are: Row Headers, Column Headers, Banded Rows, Banded Columns
These style options, if turned on, can make it easier to read the data in a large, complex pivot table.
However, the row banding and column banding can also make the pivot table look cluttered, so experiment with your pivot table style settings, to see what works best for each pivot table.
To see the available PivotTable Style options, follow these steps:
In the PivotTable Style gallery, the style previews will change, to show the style option settings that you have selected.
You can't change any of the built-in PivotTable styles, but you can create a new Custom PivotTable style in your workbook, with the formatting that you need.
1. First, choose one of these ways to get started::
2. Next, follow the instructions in the section below, to modify the Custom Style.
3. Finally, follow the steps below, to apply the new custom style to a pivot table.
Usually, the easiest way to create a custom pivottable style, is to start from one of the existing styles. Then, change the colours, or some of the formatting, to customize the style to what you need.
First, look through the gallery of built-in pivot table styles, to see if you can find a good starting point.
Then, if you find a PivotTable style that’s close to what you need, follow these steps to create a custom style, based on that style:
Next, follow the steps in the Modify the PivotTable Style section (below), to name and modify the new style.
If you don’t see a built-in pivot table style that is anything similar to what you need, you can create a new style from scratch. It's more work, but sometimes it's worth the extra effort, to get exactly what you need.
Follow these steps to create a new pivot table style.
In this short video, see how to create a custom PivotTable style, based on an existing style, and modify the style. The border on the subheading is changed, to make it clearer where each section starts.
Written instructions for modifying a style are below the video.
After duplicating or creating a PivotTable style, follow these steps to name the style
Next, change one or more of the pivot table elements, that are listed in the Modify PivotTable Quick Style dialog box.
In the Table Element list, some of the element names are in Bold font. Those elements have formatting applied. You can change the formatting for those bold elements, or clear the formatting.
You can also add formatting to any of the other elements in the list, that are not already formatted..
To modify a table element in the pivot table custom style, follow these steps:
After you click the Format button, the Format Cells dialog box opens. Follow the steps below, to select the format options that you want:
In the screen shot below, you can see the revised color in the Preview section, at the right side of the dialog box..
The new PivotTable style that you created is not automatically applied to the active pivot table. Follow these steps to apply your custom style.
You can create custom PivotTable Styles in an Excel workbook, to fine tune the appearance of your pivot tables. This video show the steps to copy that custom style to a different workbook.
NOTE: For Excel 2016 pivot tables, see the instructions below.
The written instructions are below the video.
To copy a custom PivotTable style, you can temporarily copy a formatted pivot table to a different workbook. In this example, we'll copy a custom PivotTable Style -- MyMedium2 -- from the MyOld.xlsx workbook to the MyNew.xlsx workbook.
NOTE: For Excel 2016 pivot tables, see the instructions below.
Your custom PivotTable style now appears in the PivotTable Styles gallery, in the MyNew.xlsx workbook.
Select any pivot table in the workbook, and apply your custom PivotTable Style. ▲TOP
In Excel 2016, the custom pivot table style is not copied, if you use the above technique to copy and paste a pivot table. I found a different way to copy the custom style, and this method also works in Excel 2013.
In Excel 2016, follow these steps to copy a custom style into a different workbook:
When you try to copy the pivot table formatting and values to another location, the PivotTable Style formatting isn't copied. This video shows how to manually copy the formatting from a pivot table. Written instructions are below the video.
There is also a macro to copy pivot table values and formatting, which makes the task easier.
You might want to send someone a copy of a pivot table, without the link back to its source data. It's easy to copy a pivot table, and paste it as values, but if you try to paste the values and source formatting, you'll be disappointed by the results.
As you can see in the screen shot below, the values are pasted in column D, but not the PivotTable Style formatting.
Fortunately, John Walkenbach discovered that you can paste from the Office Clipboard, instead of using the Paste Values command, and the PivotTable Style formatting is pasted too.
Follow these steps to copy a pivot table's values and formatting:
The pasted copy looks like the original pivot table, without the link to the source data. ▲TOP
A pivot table is automatically formatted with a default style when you create it, and you can select a different style later, or add your own formatting. For example, in the pivot table shown below, colour has been added to the subtotal rows, and column B is narrow.
However, some of that pivot table formatting might be lost if you refresh the pivot table, select a different item in a report filter, or change the layout. For example, here's what the same pivot table looks like, after selecting an order date from the report filter.
Here are three ways to preserve the formatting in a pivot table:
Do NOT just select a few cells, or an entire worksheet column, and apply number formatting. There are a couple of ways to apply Number Formatting that will stick:
For a single pivot field that contains numbers only, follow these steps to apply Number Formatting with the Field Settings:
To format multiple fields at once, or if Field Settings does not have a Number Format button, follow these steps to carefully select and format the numbers:
To apply other types of cell formatting to the Pivot Table, do the following:
Watch this video to see how to enable selection and use the Selection Arrow.
Most pivot table formatting can be preserved if you change the Format options in the PivotTable Options dialog box.
If you add fields to a pivot table's value area, the field labels show the summary function and the field name. For example, when you add a field named Quantity, it appears as "Sum of Quantity".
Excel won't let you remove the "Sum of" in the label, and just leave the field name, Quantity. However, you can add a space character, at the beginning or end of the field name, to work around this limitation.
Also, if there are blank cells in the source data, you might see (blank) in the row labels. You can't delete that text, but you can replace it with a space character.
NOTE: If you checked the box to "Add this data to the data model", when creating your pivot table, the pivot table is OLAP-based, instead of a Normal pivot table. For OLAP pivot tables, or to handle both types of pivot tables, use the macros on the Pivot Table Value Heading Macros page.
Watch this short video tutorial to see how to make these changes to the pivot table headings and labels.
Last updated: June 22, 2022 8:11 PM