Search Contextures Sites

Excel news
by email 







Learn how to create Excel dashboards.



Learn how to create Excel dashboards.

Excel Pivot Table Format

Change the Default PivotTable Style

When you create a pivot table (Excel 2007 and later), a default PivotTable Style is automatically applied. You can change the default PivotTable Style, if you prefer a different format.

Follow these steps to change the default PivotTable Style:

  1. Select a cell in the pivot table.
  2. On the Ribbon, under the PivotTable Tools tab, click the Design tab.
  3. In the PivotTable Style gallery, right-click on the style that you want to set as the default.
  4. In the context menu, click on Set As Default.


Create a Custom PivotTable Style

There are many built-in PivotTable styles, but you might not find one with the exact formatting you need. For example, you might like the heading colors in the Pivot Style Medium 9, but you would like a different color in the subtotal row.


Instead of using a built-in PivotTable style, you can create a custom PivotTable style with the formatting you prefer. You can duplicate an existing Pivot Table style, and modify the duplicate, or you can create a new style from scratch.

Copy an Existing PivotTable Style

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:

  1. Select a cell in the pivot table, and on the Ribbon, click the Design tab.
  2. In the PivotTable Styles gallery, right-click the style you want to duplicate.
  3. In the context menu, click Duplicate.

pivot custom style 02

Next, follow the steps in the Modify the PivotTable Style section (below), to name and modify the new style.

Create a New PivotTable Style From Scratch

If you don’t see anything similar to what you need, you can create a new style from scratch. Follow these steps to create a new style.

  1. Select a cell in the pivot table, and on the Ribbon, click the Design tab.
  2. In the PivotTable Styles gallery, click New PivotTable Style (at the bottom of the PivotTable Styles gallery)

pivot custom style 03

Next, follow the steps in the Modify the PivotTable Style section (below), to name and modify the new style.

Modify the PivotTable Style

After duplicating or creating a PivotTable style, follow these steps to name the style and set the formatting.

  1. In the Modify PivotTable Quick Style dialog box, type a name for the new PivotTable style. (If you created a new style, the dialog box will be named New PivotTable Quick Style.)
  2. To modify an element’s formatting, click it to select it, and then click the Format button. (Note: In the Table Element list, the elements in bold font have formatting applied. You can modify or clear that formatting. You can also select unformatted elements and format them.)

pivot custom style 04

  1. In the Format Cells dialog box, select the Font, Border, and Fill settings you want for the selected element.
  2. Click OK, to return to the New PivotTable Quick Style dialog box, where the formatted element is listed with a bold font. In the screenshot below, you can see the revised color in the Preview section.

pivot custom style 05

  1. Repeat Steps 2 to 4, for any other elements that you want to format.
  2. (optional) If you want your custom style to be the default PivotTable style, add a check mark to Set As Default PivotTable Quick Style For This Document.

pivot custom style 06

  1. Click OK, to close the New PivotTable Quick Style dialog box.

Apply the Custom PivotTable Style

The new PivotTable style that you created will not be automatically applied to the active pivot table. Follow these steps to apply your custom style.

  1. Select a cell in the pivot table that you want to format.
  2. Open the PivotTable Styles gallery.
  3. The custom PivotTable Style you created is added to a Custom section at the top of the PivotTable Styles gallery.
  4. Click your custom style, to apply it to the active pivot table.

pivot custom style 07

Video: Copy Custom PivotTable Style to Different File

You can create custom PivotTable Styles in an Excel workbook, to fine tune the appearance of your pivot tables. If you’ve invested a lot of time in create a custom style, you might like to copy that custom style to a different workbook.


Unfortunately, there isn’t a built-in command that will let you copy PivotTable Styles from one workbook to another. However, you can follow a few simple steps to copy your styles to any workbook.

The written instructions are below the video.

Copy Custom PivotTable Style to Different File

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.

  1. In the MyOld.xlsx workbook, select a cell in the pivot table that has the custom style applied.
  2. On the Ribbon’s Options tab, in the Actions group, click Select, and then click Entire PivotTable

    .Pivottable select

  3. On the Ribbon’s Home tab, click Copy.
  4. Switch to the MyNew.xlsx workbook.
  5. Select a blank worksheet, or insert a new blank worksheet.

    .insert worksheet
  6. Select cell A1 on the blank worksheet.
  7. On the Ribbon’s Home tab, click Paste.
  8. Delete the sheet that contains the pasted copy of the pivot table.

Your custom PivotTable style now appears in the PivotTable Styles gallery, in the MyNew.xlsx workbook.

insert worksheet

Select any pivot table in the workbook, and apply your custom PivotTable Style.

Video: Copy PivotTable Style Format and Values

When you try to copy the pivot table formatting and values to another location, the PivotTable Style formatting isn't copied. Use the technique shown in this video to successfully copy the formatting from a pivot table. Written instructions are shown below the video.

Copy PivotTable Style Format and Values

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.

copy pivot format 02

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:

  1. Select the original pivot table, and copy it.
  2. Click the cell where you want to paste the copy.
  3. On the Excel Ribbon's Home tab, click the Dialog Launcher button in the Clipboard group .

copy pivot format 03

  1. In the Clipboard, click on the pivot table copy, in the list of copied items..

copy pivot format 04

The pasted copy looks like the original pivot table, without the link to the source data.

copy pivot format 05  

Keep Formatting in Excel 2007 Pivot Table

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.


Preserve the Formatting

Most pivot table formatting can be preserved if you change the Format options in the PivotTable Options dialog box.

  1. Right-click a cell in the pivot table, and click PivotTable Options.
  2. On the Layout & Format tab, in the Format options, remove the check mark from Autofit Column Widths On Update. This will prevent column widths from changing, if you have manually adjusted them.
  3. Add a check mark to Preserve Cell Formatting on Update
  4. Click OK.


Apply Manual Formatting

After changing these Pivot Table options, the formatting should stick. When you apply manual formatting to the Pivot Table, do the following:

  1. Ensure that Enable Selection is turned on.
  2. Unless you want to format a single cell, use the pivot table selection technique to select the elements you want to format (point to the top or left edge of the element, and then click when the black arrow appears).

Video: Change Pivot Table Labels

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.

Watch this short video tutorial to see how to make these changes to the pivot table headings and labels.


More Pivot Table Resources











Privacy Policy


Contextures Inc., Copyright ©2015
All rights reserved.


Last updated: November 2, 2014