EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tools Sorting in Excel
Secondary Sidebar
Excel Functions
  • Excel Tools
    • Excel Shortcut Redo
    • Reduce Excel File Size
    • Quick Analysis in Excel
    • Goal Seek in Excel
    • Compare Two Lists in Excel
    • Excel Quick Analysis
    • Estimate Template in Excel
    • Pivot Table Count Unique
    • CSV Files into Excel
    • Excel Business Plan Template
    • Excel Export to PDF
    • Free Excel Template
    • Excel Repair
    • Color in Excel
    • Form Controls in Excel
    • Timecard Template in Excel
    • How to Unhide All Sheets in Excel?
    • Power Query in Excel
    • Power View in Excel
    • XML in Excel
    • Excel Evaluate Formula
    • Examples of Excel Macros
    • Consolidation in Excel
    • Ribbon in Excel
    • Excel Conditional Formatting for Dates
    • Protect Sheet in Excel
    • Data Model in Excel
    • Pivot Table Examples
    • Pivot Table Slicer
    • Pivot Table Filter
    • Watch Window in Excel
    • Slicer in Excel
    • Print Gridlines in Excel
    • Convert Numbers to Text in Excel
    • Freeze Columns in Excel
    • Spelling Check in Excel
    • Name Box in Excel
    • Solve Equation in Excel
    • Excel Spreadsheet Examples
    • What If Analysis in Excel
    • How to Print Labels From Excel
    • Excel Named Range
    • Excel TRANSPOSE Formula
    • Excel Merge and Center
    • Excel Freeze Rows
    • HLOOKUP Formula in Excel
    • Excel Create Database
    • Excel Gridlines
    • Excel Spreadsheet Formulas
    • Excel Sort By Number
    • Excel Concatenating Columns
    • Excel AutoCorrect
    • Conditional Formatting For Blank Cells
    • Excel Icon Sets
    • Excel CTRL D
    • Excel Accounting Number Format
    • Excel Regression Analysis
    • Excel Import Data
    • Excel Freeze Panes
    • Excel Calendar
    • Excel Developer Tab
    • Excel Enable Macros
    • Excel Autosave
    • Heat Map in Excel
    • Excel Toolbar
    • Excel Error Bar
    • Excel Status Bar
    • Excel Unprotect Sheet
    • Check mark in Excel
    • Excel Column Filter
    • Excel Header and Footer
    • Excel Drawing
    • Range in Excel
    • Timeline in Excel
    • Excel Lock Formula
    • Excel Table styles
    • Insert New Worksheet in Excel
    • Excel Column Lock
    • Excel Forms for Data Entry
    • QUOTIENT in Excel
    • Excel Sorting
    • Excel Sort by color
    • Excel Data Bars
    • Excel Tool for Data Analysis
    • Excel Flash Fill
    • Excel Auto Fill
    • Excel Quick Access Toolbar
    • Excel Wrap Text
    • Excel Exponential Smoothing
    • Excel ANOVA
    • Excel Merge Two Tables
    • Excel Conditional Formatting in Pivot Table
    • Dynamic Tables in Excel
    • Excel Sort by date
    • Excel Dynamic Range
    • Record Macro in Excel
    • Two Variable Data Table in Excel
    • Merge Cells in Excel
    • One Variable Data Table in Excel
    • Excel Fill Handle
    • CheckBox in Excel
    • Excel Table
    • Excel Combo Box
    • Auto Format in Excel
    • Advanced Filter in Excel
    • Excel AutoFilter
    • Excel Data Filter
    • Excel Data Validation
    • Excel Radio Button
    • Data Table in Excel
    • Text to Columns in Excel
    • Excel List box
    • Excel Solver Tool
    • Scrollbar in Excel
  • Excel Functions (12+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup Reference Functions in Excel (35+)
  • 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+)
  • Excel Tips (222+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL ADVANCED Training
  • EXCEL Training COURSE

Sorting in Excel

By Madhuri ThakurMadhuri Thakur

sorting in excel

Table of Contents

  • Sorting in Excel
  • Examples of Sorting in Excel

Sorting in Excel

Sorting in excel is nothing but arranging data stored in excel according to your requirement. It can be done by depending on the value type stored in cells. Some common examples include sorting alphabetically (A to Z or Z to A), by value (largest to smallest or smallest to largest), by day of the week (Mon, Tue, Wed..), or by month names (Jan, Feb..) etc. Filter Method sorting in Excel can be done depending on the type of data (number or text); there are many ways to sort data using the filter method.

With basic sorting, there are few problems like multiple columns in sort not available; customized list sorting cannot be done with basic sorting. To overcome this, the Advanced sorting option is available in Excel; by using that, we can eliminate the above-mentioned limitations; also, it has wonderful features of sorting depending upon cell color and cell icon. (Explained later in this guide), Multi-level sorting can be done by advanced sorting. You can also build your own criteria in Excel for sorting. To sort any particular dataset, select the entire dataset, go to the Data tab click on the SORT Option. The hotkey is (Alt key + A+ SS).

Sorting in excel hot keys

Start Your Free Excel Course

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

Examples of Sorting in Excel

Let’s understand the following examples of sorting in excel.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,452 ratings)
You can download this Sorting Excel Template here – Sorting Excel Template

Example#1

  • Suppose you have data as shown below:

Sorting in excel

  • Now the data in the above image can be sorted based on employee name, i.e. alphabetically (A to Z or Z to A) or on the basis of Total sales. (numerically- lowest to highest or highest to lowest).

Sorting in excel A to Z

  • While in the above case, sorting is done on the basis of one column, but what if you have data something like in the below image, So to do sorting on the basis of 2 or more columns, you need to take some additional steps.

 some additional steps

  • In the above illustration, you want to sort data at multiple levels, E.g. You want to first sort data by reporting manager, then by employee name and then by order total (highest to lowest). Why is it required? Suppose you have to find out which employee of every manager has done the maximum order sales.? You can find out answers to queries like this by using multi-level sorting. This can be only be done by advanced sorting. So to sort data at multiple levels. Simply select the entire dataset and Press (Alt key +A+ SS).

Sorting in excel

  • This will open a dialogue box like this:

dialogue box

  • In the above dialogue box, you have to fill your requirements for sorting in cells and add levels one by one.

add levels one by one

  • Now, as shown in the above image, I have applied sorting criteria, it will give results something like this:

sorting criteria

Options available in sorting dialogue box:

  1. Add Level: to add different levels to mention sorting criteria depending on the dataset.
  2. Delete Level: to delete any particular level
  3. Level: to copy any particular level. (Generally used when sorting is required on the same column but with different values.)
  4. Arrow Buttons: to move any level above or below.
  5. Options: Here, you can select the level orientation of sorting and if values are case sensitive or not.
  6. My Data Headers: Check if your dataset has headers.
  7. Columns: This will contain all headers of your data.
  8. Sort on: Here, you can mention you want to sort data on the basis of cell values, cell color, font color or conditional formatting.
  9. Order: Data should be sorted A-Z, Z-A, smallest to largest, largest to a smallest or customized list.

You can look at some of them in the below Screenshots.

Sorting in excel

Sorting Options

Sorting Options

The column having all headers

Column having all headers

Sorting Options

Sorting in excel 11

Example#2

  • Now taking the same data as given in the first example, you are going through all the orders, and you have doubt that few orders are wrongly punched, or you have some issues with it. You have highlighted all the orders having issues with yellow color. Suppose,
  1. Orders wrongly punched marked with red.
  2. Orders with a total value of less than 1000 are marked with yellow.

marked with yellow

  • So we will select the data from the sheet.

data from the sheet

  • Now you want to sort data so that you can find out which employee of each Reporting Manager has punched wrong orders and orders with a value less than 1000; you will give sorting criteria.

 Reporting Manager

  • And the sorted data will be like this:

And the sorted data will be like this:

There is another way to sort data at multi-levels(Explained later). However, the above-mentioned method has more steps as compared to the multi-level sorting method; it is still recommended to use this one because it is less confusing. Multi-level sorting can be done in two ways: –

  1. By using the Dialogue box (Discussed in the above 2 Examples)
  2. Using Sort Icons

Example#3

  • We will use the same data of previous examples, now using the sorting icon. Both the methods mentioned above works in the same way; the only difference is that here in the sorting icon method, the last level is sorted first and then goes to the first level Viz. sorting is done from bottom to top. Confusing? Isn’t it?

Confusing

  • So now, select the column you want to sort last. (E.g. Order Total in our case).

Sorting in excel example 3.0.1

  • Now go to Data Table and Sort and click on Z-A to. (This will sort the order total from largest to smallest). Hot Key (Alt Key +A+ SD).

Sorting in excel example 3.1

  • Excel is smart enough to recognize that you have data stored in a column behind or next to it. After clicking the sorting icon, a pop-up window will appear; it will ask you whether to expand the selection? Or continue with the current selection? Make sure to expand the selection.

Sorting in excel example 3.2

  • And the result is shown in the below image.

Sorting in excel example 3 result 1

  • Now, select the Employee name column and repeat the above steps.

sorting in excel example 3 from A-Z-1

  • Here click on the A-Z option in Sort & Filter. Hot Key (Alt Key +A+ SA).

Sorting in excel example 3.3

  • And the result is shown below.

sorting in excel example 3 from A-Z-result 1

  • And same steps for Reporting Manager select the Reporting Manager Column.

sorting in excel example 3 from A-Z-2

  • And then click on the A-Z option in Sort. Hot Key (Alt Key +A+ SA).

Sorting in excel example 3.3

  • And the result is shown below.

sorting in excel example 3 from A-Z-result 2

While both the methods work fine, it is still recommended to use the dialogue box method because it is less prone to errors, as we can clearly see which level is getting sorted in which order.

Things to Remember about Sorting in Excel

  • Sorting in Excel is arranging data according to our requirements.
  • It can be done alphabetically or numerically.
  • Basic Sorting works when sorting is to do on only one column.
  • Advanced Sorting is used in multi-level sorting, viz sorting required in 2 or more than 2 columns.
  • Two methods can do advanced Sorting:
  1. Sorting Dialogue Method
  2. Sorting Icon Method

Recommended Articles

This has been a guide to Sorting in Excel. Here we discuss Sorting in Excel and how to use the Sorting in Excel along with practical examples and downloadable excel template. You can also go through our other suggested articles –

  1. Excel Sort By Number
  2. Sort Column in Excel
  3. VBA Sort
  4. Excel Sort by color
Popular Course in this category
Excel Advanced Training (16 Courses, 23+ Projects)
  16 Online Courses |  23 Hands-on Projects |  140+ Hours |  Verifiable Certificate of Completion
4.8
Price

View Course

Related Courses

Excel Training (23 Courses, 9+ Projects)4.9
0 Shares
Share
Tweet
Share
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

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

EDUCBA
Free Excel Course

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

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

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

EDUCBA Login

Forgot Password?

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

EDUCBA
Free Excel Course

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

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

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

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

Let’s Get Started

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

EDUCBA

Download Sorting Excel Template

EDUCBA

Download Sorting Excel Template

EDUCBA

डाउनलोड Sorting 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