Turning Off Automatic Sorting in PivotTables

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


1

When Katara creates a PivotTable, Excel automatically sorts the data that appears in the PivotTable. She would rather not have the data sorted at all—it is just fine in the data range on which she's basing the PivotTable. Katara wonders if there is any way to turn off the automatic sorting.

Automatic sorting can be turned off by taking advantage of a setting that is (honestly) not that easy to find. Follow these steps:

  1. Create your PivotTable as you normally would.
  2. Click the down-arrow at the right of the Column Labels cell or the Row Labels cell, depending on whether you want to affect column or row sorting. Excel displays some options.
  3. Choose More Sort Options. Excel displays the Sort dialog box.
  4. At the bottom left of the dialog box click More Options. Excel displays the More Sort Options dialog box. (See Figure 1.)
  5. Figure 1. The More Sort Options dialog box.

  6. Clear the first checkbox in the dialog box (Sort Automatically Every Time the Report is Updated).
  7. Click OK to dismiss the More Sort Options dialog box. Excel again displays the Sort dialog box.
  8. Click OK to dismiss the Sort dialog box.

If you would like to explore additional PivotTable sorting capabilities, you might find this web page, by Debra Dalgleish, to be helpful:

https://www.contextures.com/excel-pivot-table-sorting.html

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12880) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

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

Too Many Cell Formats

The error message "too many cell formats" can be difficult to fix. This tip describes ways you can attempt to get rid of ...

Discover More

Combining Multiple Rows in a Column

Do you need to concatenate the contents of a range of cells in the same column? Here's a formula and a handy macro to ...

Discover More

Changing Document Links

If your document contains links to information in other documents, you can modify the source document that it is linked ...

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)

Error in Linked PivotTable Value

Excel allows you to link to values in other workbooks, even if those values are in PivotTables. However, Excel may ...

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

Empty PivotTable Cells Don't Show as Blank

You can configure Excel so that it displays special text within blank PivotTable cells. Here's how to make the changes ...

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 five more than 3?

2022-06-18 14:18:04

ProblemChild

I have many pivot tables in a sheet. How to disable auto-sort option for columns for all the pivot tables using VBA. I don't want the columns to auto-sort and move left or right from the order in which I've set it up.
(see Figure 1 below)

Figure 1. 


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.