Sort a PivotTable or PivotChart report

Microsoft Office Excel 2003

  • Click the field with the items you want to sort.

    For a PivotChart report, click the field in the associated PivotTable report. To sort items in a series field, click the corresponding column field. To sort items in a category field, click the corresponding row field.

  • Do one of the following:

    ShowSort the items ascending or descending

    1. On the PivotTable toolbar, click PivotTable, and then click Sort and Top 10.
    2. Under AutoSort options, click Ascending or Descending.
    3. In the Using field list, do one of the following:

      To sort the items by their labels, click the same field that you're sorting.

      To sort the items by their values in the data area, click the data field that supplies the values you want to sort on.

    Note  When you refresh the report or change its layout, Excel resorts the field in the order you specified.

    ShowSort the items by a particular data value

    1. Click the cell in the data area that contains the value you want to sort by. For example, if you want to sort your products by a particular month's sales value, click the value for that month in the data area.
    2. On the Data menu, click Sort.
    3. Select any options you want, and then click OK.

    Note  You'll need to repeat the sort if you refresh or update the report.

    ShowSort the items in a custom order

    The custom order is not retained if you refresh the report.

    1. On the Data menu, click Sort.
    2. Click Options.
    3. In the First key sort order box, click an option.

      If you don't see the option you want, you can create your own custom sort order by clicking Options on the Tools menu and using the Custom Lists tab.

    Note  You can organize items in a custom order manually by selecting and dragging them.

    ShowStop sorting or return the items to their original order

    1. On the PivotTable toolbar, click PivotTable, and then click Sort and Top 10.
    2. Under AutoSort options, click Manual to stop automatic sorting or Data source order to return the items to their original order.
  • Note  After you sort a PivotChart report or its associated PivotTable report, some chart formatting may be lost.

    ShowTip

    In a field that's organized in levels, you can sort all the items for a lower level together by hiding the upper levels before you sort. To hide an upper level, right-click it and then click Hide Levels on the shortcut menu.