Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Setting Stable Column Widths in a PivotTable.

Setting Stable Column Widths in a PivotTable

Written by Allen Wyatt (last updated July 3, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

Stuart has been building PivotTables for a charity so that they can report on donation patterns over time. The problem he has is that he wants to permanently set the column widths in his PivotTable, but whenever the filter variables for the PivotTable are changed, the column widths reset themselves. Stuart wonders how he can permanently fix all column widths in the PivotTable so they don't change.

This is very easy to do in Excel. After your PivotTable is set up and formatted just the way you want, follow these steps if you are using Excel 2013 or a later version:

  1. Select a cell in the PivotTable.
  2. Display the PivotTable Analyze tab of the ribbon.
  3. Click the PivotTable tool at the left side of the ribbon. Excel displays some options.
  4. Click Options. Excel displays the PivotTable Options dialog box.
  5. Make sure the Layout & Format tab is displayed. (See Figure 1.)
  6. Figure 1. The Layout & Format tab of the PivotTable Options dialog box.

  7. Make sure the Autofit Column Widths on Update check box is cleared.
  8. Click OK.

If you are using Excel 2007 or Excel 2010 follow these steps instead:

  1. Select a cell in the PivotTable.
  2. Display the Options tab of the ribbon.
  3. Click the Options tool in the PivotTable group. Excel displays the PivotTable Options dialog box.
  4. Make sure the Layout & Format tab is displayed.
  5. Make sure the Autofit Column Widths on Update check box is cleared.
  6. Click OK.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (759) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Setting Stable Column Widths in a PivotTable.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Turning Track Changes Off for Selected Areas

Track Changes is a great tool to use so that you can, well, "track" what changes are made during the development of a ...

Discover More

Adding Parentheses

Need to add parentheses around some word or phrase? Here's a quick macro that makes this simple edit in one step.

Discover More

Adjusting the Order of Items in a Chart Legend

When charting your data, a legend is always a nice finishing touch. You may want to change the order in which items ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Default Formatting for PivotTables

Wish there was a way to define how you want PivotTables formatted before you actually create the PivotTable? You may be ...

Discover More

Seeing What Changed in a PivotTable

PivotTables are great for aggregating and analyzing tons of raw data. If you want to see what changes in the PivotTable ...

Discover More

Easy Filtering Specifications for a PivotTable

When you want to include specific records from a source table into a PivotTable, you need to employ some sort of ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is one less than 9?

2022-01-14 04:27:44

Andy

Hi, I have done everything as described and it works. However, the following is still happening and I am trying to find a solution to it:
Pivot Column headers set to "-90" (VBA), WordWrap set to false (VBA), RowHeight adjusted to 200 (VBA): When you use a slicer for the field that you use for the column headers and update the slicer selection, the row height will automatically adjust to fit.
I don't want that. Can that be prevented?
Thx, Andy


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.