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

Page Numbers in VBA

When you print a larger worksheet, Excel breaks the printout across several pages. You may want to know, before you ...

Discover More

Recovering Password-Protected Documents

Got a locked document you just need to get into? It may be quite easy (or next to impossible) using the ideas in this tip.

Discover More

Finding Long Sentences

For certain types of writing, you may want to make sure that the sentences in your document do not exceed a certain ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Counting with PivotTables

One of the ways you can use PivotTables is to generate counts of various items in a data table. This is a great technique ...

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

Rows in a PivotTable

PivotTables are used to analyze huge amounts of data. The number of rows used in a PivotTable depends on the type 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 6 + 5?

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.