Contextures

Home > Pivot > Format > Styles

Excel Pivot Table Format

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.

pitot table style set as default

Change Default PivotTable Style

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:

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

NOTE: The default PivotTable style selection is for the active workbook only.

pitot table style set as default

Use PivotTable Style Options

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.

  • Row headers add fill colour, to make the headings and subheadings stand out
  • Column headers add fill colour at the top of the pivot table
  • Row banding makes it easier to follow a row of data across a wide pivot table
  • Column banding makes it easier to follow a column of data down a long 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.

See PivotTable Style Options

To see the available PivotTable Style options, follow these steps:

  • Select any cell in your pivot table.
  • On the Excel Ribbon, click the Design Tab
  • In the centre of the Design tab, there is a group of PivotTable Style Options
  • Add a check mark to one or more of the style options, to apply those options
  • OR, clear the check marks, to remove any of the style options

In the PivotTable Style gallery, the style previews will change, to show the style option settings that you have selected.

pitot table style set as default

Modify a PivotTable Style

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.

Copy an Existing PivotTable Style

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:

  1. Select any cell in the pivot table
  2. Then, on the Excel Ribbon, click the Design tab.
  3. In the PivotTable Styles gallery, right-click the style you want to duplicate.
  4. In the pop-up menu, click the Duplicate command.

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

pivot custom style 02

Create New PivotTable 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.

  1. First, select a cell in the pivot table
  2. Next, on the Excel Ribbon, click the Design tab.
  3. In the PivotTable Styles gallery, scroll to the bottom
  4. Click the New PivotTable Style command
  5. Next, follow the steps in the next section below, to name and modify the new style.

pivot custom style 03

Name and Modify PivotTable 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.

  • NOTE: If any sheet in the workbook is protected, you can’t modify or delete a Custom Style.

Written instructions for modifying a style are below the video.

Name a PivotTable Style

After duplicating or creating a PivotTable style, follow these steps to name the style

  1. In the Modify PivotTable Quick Style dialog box, click in the Name box, at the top
    • If you created a new style, the dialog box will be named New PivotTable Quick Style.
  2. Type a name for the new PivotTable style.
    • Tip: Use a descriptive name, so it's easy to identify your custom styles later, and remember why you created them. For example - Dark Blue Budget Style

Modify a PivotTable 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.

  • NOTE: If any sheet in the workbook is protected, you can’t modify or delete a Custom Style.

Modify Custom Style

To modify a table element in the pivot table custom style, follow these steps:

  • First, click on an element name in the list, to select it
  • If the element name was in bold font, its formatting details will appear below the Table Element list.
    • In the screen shot below, the Row Subheading 1 element is selected
    • Its current formatting has Bold Text 1, and it is shaded.

pivot custom style 04

  • Next, click the Format button, to see the Format options
    • Or, to remove the current formatting, click the Clear button.

Format Cells Dialog Box

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 Format Cells dialog box, select the Font, Border, and Fill settings you want for the selected element.
  • Click OK, to return to the New PivotTable Quick Style dialog box, where the formatted element is listed with a bold font.

In the screen shot below, you can see the revised color in the Preview section, at the right side of the dialog box..

pivot custom style 05

  • Repeat Steps 2 to 4, for any other elements that you want to format.
  • (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

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

Apply the Custom PivotTable Style

The new PivotTable style that you created is not 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

Copy Custom Style to Different File

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, and there are written steps below the video.

Video Timeline

  • 0:00 Introduction
  • 0:14 See the Custom Style
  • 0:41 Copy Worksheet
  • 1:07 Use the Custom Style

NOTE: For Excel 2010 pivot tables, see the instructions below.

How to Copy Custom PivotTable Style to Different File

Use this method, in Excel 2016, or later, to copy a custom style into a different workbook:

NOTE: If you want to avoid copying defined names, and custom cell styles, into the other workbook, follow the steps in the section below.

  1. Open the old workbook with the pivot table that has the custom style applied.
  2. Open the new workbook where you want to add that custom style
  3. Position the workbooks, so you can see the sheet tabs in both files
  4. Press the Ctrl key, and drag a copy of the pivot table sheet from the old workbook, into the new workbook.
  5. The custom style is now copied into the new workbook, and you can delete the sheet that you copied into it, from the old workbook.

insert worksheet

Workbooks with Defined Names and Custom Cell Styles

When you copy a sheet from one file to another, it also copies defined names, and custom cell styles, from the original workbook. If you want to avoid that, use these extra steps:

Use this method, in Excel 2016, or later, if your workbook also has custom Cell Styles.

  • First, copy the pivot table sheet into a new blank workbook
  • Close the original workbook
  • In the new workbook, on the Excel Ribbon’s Formulas tab, click Name Manager
    • To select all the names, click the first name, then press Shift and click the last name
    • Click the Delete button, to delete all the names
    • Close the Name Manager
  • Next, on the Excel Ribbon’s Home tab, in the Styles group, click Cell Styles
    • To delete custom cell styles, if any are listed, right-click on each style name, then click Delete
      • custom cell stules on Excel Ribbon
  • Finally, move the pivot table sheet from the new workbook, into the other workbook, where you want to use the custom pivot table style.

Copy a Custom Style in Excel 2010 / 2007

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.

This video shows the steps, and the written instructions are below the video.

Video Timeline

  • 0:00 Introduction
  • 0:18 See the Custom Style
  • 0:40 Copy the Pivot Table
  • 1:14 Add to Other Workbook
  • 1:40 Use the Custom Style

To copy a custom pivot table style to a different workbook, in Excel 2007 or Excel 2010, follow the steps below. 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.   ▲TOP

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. 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.

How to 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.   ▲TOP

copy pivot format 05  

Keep Formatting in Excel 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.

PivotFormat01

Formatting Disappears

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.

PivotFormat01

How to Preserve Pivot Table Formatting

Here are three ways to preserve the formatting in a pivot table:

How to Apply Number Formatting

For pivot table numbers, do NOT just select a few cells, or an entire worksheet column, and apply number formatting. That type of formatting might not stick, after you refresh the pivot table.

Instead, are a couple of ways to apply Number Formatting that will stick:

  • To apply number formatting to a single field in a pivot table, use the Field Settings, if possible.
  • To format multiple fields at once, or if Field Settings does not have a Number Format button, follow the steps to carefully select and format the numbers.
Use the Field Settings

For a single pivot field that contains numbers only, follow these steps to apply Number Formatting with the Field Settings:

  1. Right-click a value in the pivot field that you want to format
  2. Click Field Settings
  3. At the bottom left of the Field Settings dialog box, click Number Format.
    • NOTE: If there are non-numeric items in the pivot field, the Number Format box might not appear. Use the formatting steps in the "Select and Format" section.
  4. Number Format button

  5. In the Format Cells dialog box, select the number formatting that you want, and click OK
  6. Click OK, to close the Field Settings dialog box
Select and Format Numbers

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:

  1. To select the numbers, do NOT click the worksheet column headings -- use one of the following methods to select the cells
    • In the pivot table, point to the top of a value field heading. When the pointer changes to a black arrow, click to select the entire pivot table column, including the grand totals.
    • carefully select cells for number formatting

    • OR, carefully select all the numbers in multiple fields that you want to format, including any grand totals (row and column).
    • select multiple fields for number formatting

  2. With the cells selected, click the Home tab on the Excel Ribbon.
  3. Use the formatting commands and Number format options to format the selected cells.

How to Apply Cell Formatting

To apply other types of cell formatting to the Pivot Table, do the following:

  1. Ensure that Enable Selection is turned on.
  2. To format a single cell, select that cell, and use the formatting commands on the Excel Ribbon
  3. To format a specific part of the pivot table, such as the subtotal rows, select that part -- point to the top or left edge of the element, and then click when the black arrow appears.   ▲TOP

Watch this video to see how to enable selection and use the Selection Arrow.

Setting to Preserve Cell 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.

PivotFormat01

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.

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.

Video: Change Pivot Table Labels

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

Get the Sample File

  1. No Macros: To experiment with pivot table styles and formatting, download the sample file. The zipped file is in xlsx format, and and does NOT contain any macros.
  2. Style Macros: To experiment with pivot table styles macros, download the Styles Macros sample file. The zipped file is in xlsm format, and contains macros to work with the PivotTable Styles. Print a list with the default pivot style and table style, print a list of pivot tables with style info, or change the default pivot style, based on the selected pivot table.  ▲TOP

More Pivot Table Resources

Manually Move Pivot Items

Clear Old Items in Pivot Table

 

 

Last updated: October 25, 2023 3:43 PM