How to sort with custom list order in pivot table?
As we all known, Excel supports a feature to sort data by custom list as you need. And this feature is also applied to pivot table when you want to sort the data with custom list order. Here, I will introduce you that how to sort data by custom list in pivot table?
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
Look at the following pivot table, now I want to sort the regions with this order: East, West, South then North as show as below screenshot. In pivot table, we can easily sort these regions alphabetically in ascending or descending order. And here, I can show you to sort these regions by custom lists you like.
1. Firstly, you should create a custom list by clicking File > Options, in the Excel Options dialog, click Advanced from the left pane, and then scroll down to click Edit Custom Lists button under General section, see screenshot:
Tip: If you are using Excel 2007, please click Office button > Excel Options, and then click Popular in the left pane, and click Edit Custom Lists button under Top options for working with Excel section, see screenshot:
2. Then in the popped out Custom Lists dialog, click NEW LIST from the Custom lists: box, and enter the custom list values that you need to sort with this order into the List entries: box, at last, click Add button to add the new lists to the Custom Lists box.
3. And then click OK > OK to close the dialogs. Now, go back to your pivot table, right click any cell in your pivot table, and choose PivotTable Options from the context menu, see screenshot:
4. In the PivotTable Options dialog box, go to click the Total & Filters tab, and then make sure to check Use Custom Lists when sorting option under Sorting section, see screenshot:
5. Then click OK to close the dialog, and now, you can sort the data with custom lists that you are created just now with following operations:
A: If the field is set for automatic sort, please right click any cell in your pivot table, and choose Refresh, and then the field will be sorted with your custom lists order;
B: If the field is currently set for manual sorting, you should right click a cell in the Region field of your pivot table, and click Sort > Sort A to Z.
Note: If you want to disable this custom list sort order in the pivot table, you just need to uncheck Use Custom Lists when sorting option in the PivotTable Options dialog box.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 2 years agoThank you!!!
- To post as a guest, your comment is unpublished.· 2 years agoje ne comprend pas ... cette fois-ci ca ne marche pas. Pourtant en copiant des cellules du meme type, la copie incrémente bien dans l'ordre de la liste prédéfinie; mais arrivée dans le TCD c'est le bordel ... une idée d'à quoi c'est du?
- To post as a guest, your comment is unpublished.· 3 years agothank you so much