Excel pivot table formatting practice file with custom style and color-coded variance indicators

Download the Pivot Table Formatting Workbook

Get the pre-built custom PivotTable Style + color code reference chart from the video. Ready to copy into your own workbooks.

Why Do Default Pivot Tables Look Unprofessional?

Excel’s default pivot table layout is functional but cluttered. You get “Sum of Actual” and “Sum of Budget” as column headers, expand/collapse buttons on every group, field headers above the data, and generic “Grand Total” labels.

The gridlines and banded rows often make the report harder to scan, not easier.

The result? Most people copy the pivot table, paste it as values, and format the static copy. That means rebuilding the report from scratch every time data changes.

There is a better way: format the pivot table directly so it stays connected to your source data.

Default pivot table vs formatted pivot table side-by-side comparison in Excel

How Do You Set Up a Budget Report Pivot Table?

Before formatting, you need the right structure. For a budget report like the one in this tutorial, start with source data that includes departments, categories, months, and both actual and budget amounts.

  1. Select your data (formatted as an Excel Table) and go to Insert > PivotTable on a new worksheet.
  2. Drag Department and Category to the Rows area.
  3. Drag Actual and Budget to the Values area. Reorder them by clicking and dragging within the Values area so Actual appears first.
  4. Drag Month to the Filters area so you can view one month at a time.

Tip: In Microsoft 365, source number formatting now pulls through to the pivot table automatically. If your source data already has thousand separators, the pivot table inherits them. No need to reformat values manually.

PivotTable Fields panel with Department and Category in Rows, Actual and Budget in Values, Month in Filters

How Do You Add a Calculated Variance Field?

A budget report without variance data forces readers to do mental math. Add a calculated field so the difference between budget and actual appears automatically.

  1. Click inside the pivot table. Go to PivotTable Analyze > Fields, Items & Sets > Calculated Field.
  2. Name the field Variance.
  3. Set the formula to = Budget – Actual.
  4. Click OK.

Now every row shows how much you are over or under budget.

  • Negative values mean overspending.
  • Positive values mean you came in under budget.

This calculation updates automatically when you switch months or add new data.

Calculated Field dialog showing Variance formula as Budget minus Actual

What Layout Changes Make the Biggest Impact?

A few quick layout adjustments transform a dense pivot table into something readable.

Insert blank rows for breathing space. Go to Design > Blank Rows > Insert Blank Line after Each Item. This separates each department group visually without adding manual rows.

Choose the right report layout. The Design tab offers Compact, Outline, and Tabular layouts. Compact form (the default) nests Department and Category in a single column with indentation.

This works well for most reports. Tabular form splits them into separate columns, which is better if you need to copy data into another tool.

Remove visual clutter. On the PivotTable Analyze tab:

  • Turn off the +/- Buttons (expand/collapse controls). You do not need them in a final report.
  • Turn off Field Headers to remove the “Row Labels” and “Values” text above your data.

Rename “Grand Total.” Click the Grand Total cell and type a descriptive label like “All Departments.” This label persists even when you refresh the pivot table.

Pivot table after blank rows inserted and expand collapse buttons removed

How Do You Rename Pivot Table Column Headers?

Default headers like “Sum of Actual” and “Sum of Budget” are not presentation-ready. You can rename them, but Excel does not allow a header name identical to an existing field name.

The workaround: add a space before or after the header name.

Use “Actual” ← leading space included
Not “Actual”

The space is invisible in the report, but it makes the header name unique.

Use Tab to move between header cells and rename each one: Actual, Budget, Variance.

Pivot table column headers renamed to Actual Budget and Variance without Sum of prefix

How Do You Create a Custom PivotTable Style?

This is the step that makes the biggest visual difference. Instead of formatting individual cells (which breaks on refresh), you create a reusable custom style that formats pivot table elements.

Step 1: Pick a base style. Go to the Design tab and browse the PivotTable Styles gallery. Choose a minimalistic base. “Pivot Style Light 1” (the plain white style) is a clean starting point.

Step 2: Duplicate it. Right-click the style and select Duplicate. Give it a descriptive name (e.g., “Clean Budget Report”).

Step 3: Customize the Header Row. Select “Header Row” from the Table Element list and click Format. Under Borders, remove all borders except a single bottom border in black. Under Font, keep the existing color.

Step 4: Customize the Whole Table. Select “Whole Table” and click Format. Under Font, switch to a dark gray (not pure black) for softer text. Under Borders, remove all outer borders. Add a thin gray horizontal border between rows. For vertical borders, use a thick white line. This creates subtle column separation without visible grid lines.

Step 5: Fix the Blank Row element. Select “Blank Row” from the element list and remove all borders. This prevents border lines from appearing in the spacing rows you added earlier.

Step 6: Apply the style. Click OK, then select your custom style from the gallery. It appears in the Custom section at the top.

Step 7: Remove sheet gridlines. Go to View and uncheck Gridlines. This lets your clean pivot table design stand on its own.

Modify PivotTable Quick Style dialog showing Table Element list and formatting preview
Formatted pivot table with custom style applied and sheet gridlines removed

Why this matters: Because you are formatting elements (not cells), the style stays intact when data changes, new categories appear, or you refresh the pivot table. This is the key advantage over manual cell formatting.

For a deeper understanding of how pivot table elements and styles interact, see our tutorial on custom number formatting in Excel where we cover color codes, symbols, and format structure in detail.

How Do You Add Color-Coded Variance Indicators Without Conditional Formatting?

This technique uses custom number formatting to display colored symbols based on whether values are positive, negative, or zero. It is faster than conditional formatting and does not break on refresh.

Step 1: Add the variance field a second time. Drag Variance into the Values area again. This creates a duplicate column that you will format as an icon column.

Step 2: Open custom number format. Right-click the duplicate variance column, select Number Format > Custom.

Step 3: Build the format code. Custom number formats have up to four sections separated by semicolons: positive; negative; zero; text.

Enter this format code:

[Color43]■;[Color53]■;

Here is what each part does:

  • [Color43]■ displays a green square (■) for positive values (under budget)
  • [Color53]■ displays a dark red square (■) for negative values (over budget)
  • The empty third section hides zeros

The ■ symbol comes from the Windows emoji panel (Windows key + period). Navigate to Symbols and select the filled square. On Mac, use the Character Viewer (Control + Command + Space).

Step 4: Hide the duplicate header. Rename the column header to a single space so it does not display a label.

Custom number format dialog with Color43 and Color53 square symbol format code
Final formatted pivot table with green and red variance indicator squares

About the color codes: Excel supports 56 indexed colors for custom number formats. The default [Green] and [Red] are bright. Color 43 gives a muted teal-green and Color 53 gives a darker red, which look more professional in reports. The practice file includes a full color reference chart.

Note that these color codes are language-sensitive. If your Excel is set to German, use [Farbe43] instead of [Color43]. French uses [Couleur43].

What PivotTable Options Should You Set Before Sharing a Report?

Before sending a pivot table report to others, lock down these settings under PivotTable Analyze > Options > PivotTable Options:

Uncheck “Autofit column widths on update.” Otherwise, Excel resets your carefully adjusted column widths every time someone refreshes the data. This is the most common cause of pivot table reports “breaking” visually after a refresh.

Check “Preserve cell formatting on update.” This keeps your number formats, font changes, and alignment intact after a refresh.

Set empty cell display. If your report has blanks, decide whether to show them as empty or as zeros. Configure this in the “For empty cells show” field.

Set error value display. If your calculated fields might divide by zero, check “For error values show” and leave it blank. This suppresses #DIV/0! errors.

How Do You Copy a Custom PivotTable Style to Another Workbook?

Custom PivotTable Styles are stored inside the workbook where you created them. To use your style in another file:

  1. Right-click the worksheet tab containing the formatted pivot table.
  2. Select Move or Copy > Create a Copy.
  3. Choose your target workbook from the dropdown (or select “New Book”).
  4. Click OK.

The copied sheet brings the custom style with it. Now you can delete the copied pivot table sheet. The custom style remains available in the target workbook’s PivotTable Styles gallery for any new pivot table you create.

Alternatively, download the practice file from the link at the top of this page. The custom style is pre-built. Copy any sheet from that file into your workbook to transfer the style.

If you want to go deeper into pivot table techniques like calculated fields, slicers, and report filter pages, check out the advanced pivot table tutorial on XelPlus.

Quick Reference: Pivot Table Formatting Checklist

Here is a summary of every step covered in this guide:

  1. Insert a pivot table with the right field layout (rows, values, filters).
  2. Add a calculated Variance field (Budget minus Actual).
  3. Insert blank rows after each item for spacing.
  4. Remove +/- buttons, field headers, and gridlines.
  5. Rename column headers with a leading space trick.
  6. Rename Grand Total to a descriptive label.
  7. Duplicate a built-in style and customize elements (header row, whole table, blank row).
  8. Apply the custom style from the gallery.
  9. Add a duplicate variance field with a custom color-coded symbol format.
  10. Set PivotTable Options to preserve formatting and prevent column resizing on refresh.
  11. Copy the style to other workbooks by copying a sheet.

For foundational pivot table skills, including how to create your first pivot table and work with field areas, start with the how to create a pivot table in Excel tutorial.


Want to go beyond formatting? The Pivot Table Mastery course covers everything from calculated fields and slicers to building interactive dashboards that update automatically.

Featured Course

Excel Pivot Table Mastery: Basics to Dashboards

Use pivot tables to summarize thousands of rows in seconds and build dashboards that update themselves. No manual sorting and no complicated formulas.
Learn More

Frequently Asked Questions

Does custom PivotTable Style formatting survive a refresh?

Yes. Because you are formatting pivot table elements (header row, whole table, blank row) rather than individual cells, the style persists when you refresh data, add rows, or change filters. Make sure “Preserve cell formatting on update” is checked in PivotTable Options.

Why does Excel say “field name already exists” when I rename a header?

Excel does not allow a pivot table header to use the exact same name as a field in your source data. The fix is to add a leading or trailing space to the header text. The space is invisible but creates a unique name.

Can I use conditional formatting instead of custom number formats for variance indicators?

You can, but custom number formatting is faster to apply and performs better with large datasets. In benchmark tests, custom formatting runs about three times faster than conditional formatting on 40,000+ rows. It also does not reset on refresh.

How do I transfer a custom PivotTable Style to another workbook?

Copy a sheet containing a pivot table with that style to the target workbook (right-click the tab > Move or Copy > Create a Copy). Once copied, the style appears in the PivotTable Styles gallery. You can then delete the copied sheet and the style stays.

What are the best color codes for custom number formats in Excel?

Excel supports 56 indexed colors. The eight named colors (Red, Green, Blue, etc.) are basic. For more professional tones, use [Color43] for a muted green and [Color53] for a dark red. The full color palette reference is included in the practice file.

Download the Workbook

The custom PivotTable Style in this workbook took a few minutes to build. But it is reusable across every report you create going forward.

Copy a sheet from the practice file into your own workbook, and the custom style transfers with it. Apply it to any pivot table and you are done.

Download the practice file below and try it with your own data.

Get the practice file and apply these formatting styles to your own pivot table.

Best Value

Excel Essentials Bundle

Your Perfect Starting Point in Excel. Most professionals pick up bad habits because they never get proper Excel training. This bundle fixes that – teaching you core skills, and must-know tools to make everything else in Excel so much easier.
Learn More
Excel Essentials Courses by Leila Gharani

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.