EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Pivot Table Sort
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (36+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

Pivot Table Sort

By Madhuri ThakurMadhuri Thakur

Pivot Table Sort in Excel

Pivot Table Sort in Excel (Table of Content)

  • Pivot Table Sort in Excel
  • Steps to Create a Pivot Table in Excel
  • How to Sort Pivot Table Columns in Excel?
  • How to Sort Pivot Table Rows in Excel?

Pivot Table Sort in Excel

To sort any pivot table, there are 2 ways. First, we can click right the pivot table field we want to sort and select the appropriate option from the Sort by list. Also, we can choose More Sort Options from the same list to sort more. Another way is by applying the filter in a Pivot table. Go to the cell out of the table and press Shift + Ctrl + L together to apply the filter. Now from the drop-down list, we can choose any Sorting type as required.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

Steps to Create a Pivot Table in Excel

A brief discussion below would familiarize you with how to create a Pivot Table in Excel:

You can download this Pivot Table Sort Excel Template here – Pivot Table Sort Excel Template

Step 1: Select the table you want to get data from.

Pivot Table Sort step 1

Step 2: Click on Insert.

Pivot Table Sort step 2

Step 3: Select the Pivot Table, and a pop-up window will appear.

Pivot Table Sort step 3

Since we have already selected the data, the Select Table or Range option is auto-filled; if you want to change it, it can be done here.

Step 4: Select from where you want the Pivot table to be located; in this case, I am creating a new page but not a new sheet.

Pivot Table Sort step 4

Step 5: Specify the exact location of the Pivot Table.

Pivot Table Sort step 5

Click Ok, and your pivot table is now created.

Step 6: Now that the pivot table is created, specify which data you want to display.

Pivot Table Sort step 6

The end result should look like this:

Pivot Table Sort step 7

This is a small table I created to illustrate how to create a pivot table. A larger pivot table to practice on is also included with the practice dataset these values have been taken from and will be used for illustrating how to sort data in a pivot table.

Now that we have seen how to create a pivot table, let us get to this article’s main subject, which is sorting data inside a pivot table.

How to Sort Pivot Table Columns in Excel?

For small tables, sorting data is straightforward; you just need to select the Row Label column if you want to sort the data alphabetically and specify whether you want to sort from A-Z or Z-A.

Sorting Pivot Table Columns 1

Or you can click on More Sort Options to get detailed settings in the pop-up window that appears on the screen.

Sorting Pivot Table Columns 2

As you can see, sorting can be done alphabetically from A-Z or Z-A, by value in ascending or descending order or manually using any order we need for visualizing the data.

For larger tables, perform the following steps:

  1. Click on Data in the Ribbon Menu on the top of the screen.

Sorting Pivot Table Columns 3

  1. Click on Sort, and a pop-up window appears.

Sorting Pivot Table Columns 4

  1. We can select any of the attributes we want to sort from the table and sort by value, alphabetical order, and many other attributes in the pop-up window.

Sorting Pivot Table Columns 5

  1. We can also sort multiple attributes simultaneously by clicking on add level and specifying the next parameter we want to sort on.

Sorting Pivot Table Columns 6

The end result of this would give us the data we require. Coming back to our original example, we can now find out who worked how much and how much cost savings were available for each employee. We can also find out various parameters for sets of data by sorting according to our preferences and selecting filters accordingly.

How to Sort Pivot Table Rows in Excel?

We have seen how to arrange pivot table data in various orders inside a column. The following steps illustrate how to sort pivot table data inside a row.

Consider the following table:

Sorting Rows 1

Now, if we want to see the TBD values next to the Analyst Name directly, we need to sort the data in the rows so that the Cost Savings column is next to the Row Labels column.

To do this, perform the following steps:

  1. Right-click on the cell where you need to start sorting from, a dropdown menu appears:

Sorting Rows 2

  1. Select Sort and then More Sort Options from the next dropdown that appears

Sorting Rows 3

  1. A pop-up window appears, select the order which you want, in this case, the smallest to largest order as we can see from the data:

Sorting Rows 4

Select Left to Right instead of Top to Bottom and click OK.

  1. The end result should look like this:

Sorting Rows 5

Now that we have seen examples and also learned how to sort data in Pivot.

Things to Remember

  1. Before sorting any data, make sure that no extra spaces are leading the values; these leading spaces will affect sorting results, especially if we sort text values or use text parameters such as sorting alphabetically from A-Z Z-A.
  2. In pivot tables, sorting cannot be done on a case-sensitive basis for text, all text is treated as being the same case, and no distinction is made between uppercase and lowercase.
  3. Pivot tables do not allow sorting by a specific format, such as cell color, font color, or conditional formatting indicators like sets of icons.
  4. Sorting in Pivots requires practice and knowledge of the structure of the data you are working with, as the selection of sorting parameters will depend on this.
  5. While using multiple sort levels, never select the whole table as it will change the structure of the pivot and throwing an error instead of the desired result.

Conclusion

Data analysis using excel is a vast field. Pivot table sort is just one of the many features available for us to sort, analyze and display data.

As we keep learning new concepts, we will keep finding new and exciting ways to manipulate data. I have included a practice workbook along with this article. You are encouraged to add your own data and apply the concepts highlighted in this article. Further resources are also available elsewhere on our website as well on the Microsoft Support site for specific functionalities.

The key to learning and applying these concepts effectively is practicing with the kind of data an actual business would use, not being afraid to make mistakes, and having an open mind towards different challenges we might face on our learning journey. It is always a pleasure to teach new concepts, and I hope you find our content interesting. Have an enjoyable learning experience.

Recommended Articles

This has been a guide to Pivot Table Sort in Excel. Here we discussed How to Sort Pivot Table Columns and Rows in Excel along with Examples and downloadable excel templates. You may also look at these useful functions in excel –

  1. Sorting in Excel
  2. Pivot Chart in Excel
  3. Pivot Table In MS Excel
  4. Pivot Table Count Unique
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Data Analysis Training (17 Courses, 8+ Projects)4.9
Excel for Finance Training (18 Courses, 7+ Projects)4.8
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download Pivot Table Sort Excel Template

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Pivot Table Sort Excel Template

EDUCBA

डाउनलोड Pivot Table Sort Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more