How to Sort Data in Excel: Easy Step by Step Process
Last Updated :
12 Apr, 2025
Sorting data in Excel is a simple yet powerful way to organize your information, making it easier to analyze and interpret. Whether you're working with a small dataset or a large table, knowing how to sort data in Excel can help you find the information you need quickly. In this guide, we will cover the basics of sorting a single column in Excel, as well as how to sort multiple columns in Excel for more complex datasets.
Additionally, we’ll explore how to apply a custom sort in Excel, allowing you to order your data exactly the way you need it. By the end of this article, you’ll have the tools to sort and manage your data more efficiently.
How to Sort a Single Column in Excel
Sorting a single column in Excel is a basic operation that allows you to organize data in ascending or descending order based on the values in that column. Consider the Employee dataset depicted below. It has information about the employees, the Job Title, Department, Gender, and so on.
Employee DatasetLet’s sort the data based on the Annual Salary of each Employee in descending order.
- You can choose the data and the shortcut key Ctrl + Shift + L to sort just one column.
- Select the List Annual Salary column's downward pointing arrow. From largest to smallest, choose.
Sorting Employee DatasetHow to Sort Multiple Columns in Excel
Most often, only one column needs to be sorted. However, there can be times when you need to sort across many columns. Data can be sorted by several columns using advanced sorting methods. Here's a step-by-step guide on how to do it:
Step 1: Select your data
Click anywhere within the data range you want to sort. Ideally, select the entire table, including any header row.
Select your DataStep 2: Go to the Data tab
Navigate to the "Data" tab on the Excel ribbon and click on it.
Select Data >>Go to the Data tabStep 3: Click Sort in the 'Data tab'
In the "Data Tab" group, find the "Sort" button and click on it.
Select Data>>Go to Data Tab>>Select Range>>Choose your preference Step 4: Choose the first sort column
A "Sort" dialog box will appear. In the "Sort by" dropdown menu, select the first column you want to sort by. This is your primary sorting criteria.
Choose Sort ColumnStep 5: Add additional sorting levels (optional)
If you want to sort by more than one column, click the "Add Level" button. Then, choose the next column you want to sort by from the new "Then by" dropdown menu and set its order (ascending or descending). You can repeat this step for a third level of sorting.
Add additional sorting levelsTip
Sorting happens sequentially. The data will be sorted by the first column first, then within those sorted groups, by the second column, and so on.
Step 6: Click 'OK'
Once you've defined your sorting criteria, click the "OK" button to execute the sort.
Click 'OK'>> Sort Data How to Apply a Custom Sort in Excel
You can create your custom order in Excel by using custom sorting. Data that cannot be sorted alphabetically or ascending may occasionally need to be sorted. To sort data, Excel enables you to make your unique lists. Suppose you want to sort the dataset based on Department in the following order - IT, Sales, Marketing. Follow the steps given below for your reference:
- Select the dataset > Click on the Sort option in the Data tab
- Choose the Department column to sort
- Under Sort On, select Cell Values
- Choose the Custom List, under Order
- In the Custom Lists dialog box, add the List entries separated by commas - IT, Sales, Marketing
- Click on Add > Select OK.
Custom SortingThe result of the same is displayed below.
Sorted Data
Data sorting using a single column was demonstrated. You were aware of how sorting functions when numerous columns are involved. Additionally, you learned about MS Excel's capability for custom sorting.
Addition Tip for sorting
- You can sort up to three levels in the basic sort and more using the custom sort.
- Sorting happens sequentially, so prioritize your most crucial sorting criteria first.
- For clarity, consider using a helper column with formulas to define your sorting logic before using the custom sort option.
Types of Sorting in Excel
Single Column Sorting
- You can sort data based on the values in a single column.
- For example, sorting a list of names alphabetically or sorting numbers from smallest to largest.
Multiple Column Sorting
- You can sort data based on multiple columns to prioritize sorting order.
- For example, first sorting by department and then by employee names within each department.
Conclusion
Now that you know how to sort data in Excel, you can apply these techniques to organize your spreadsheets and make your data easier to navigate. Whether you're sorting a single column, organizing multiple columns, or applying a custom sort for more specific needs, these methods will help you work more effectively with your Excel data. Mastering sorting options in Excel will not only improve your workflow but also enhance your ability to analyze and present data clearly.
Similar Reads
How to Sort by Date in Excel? Excel provides various types of sorting formats e.g. âsort A to Zâ, âSort Z to Aâ, âSort by colorâ and âSort by dateâ etc. Sorting in Excel is nothing but arranging data into some meaningful order to make it easier to understand, analyze, or visualize. Here, we will be discussing how to sort by Date
6 min read
How to Delete Filtered Rows in Excel: Step by Step Guide Efficiently managing data in Excel often involves filtering and removing unnecessary rows. However, deleting filtered rows in Excel can be tricky if not done correctly, as unwanted data may get removed. This article provides a step-by-step guide to help you safely and accurately delete filtered rows
9 min read
How to Sort Data by Color in Excel? Sorting Data By Color allows us to segregate the data cells of a specific color. There can be many ways to sort by color like sorting by Cell color, sorting by Font color, etc. We can also add multiple levels in sorting data by color. Sorting by Color makes analysis very easy and time-saving. Sort b
3 min read
How to Find Duplicates in Excel (2025 Step-by-Step Guide) Managing data effectively in Excel often requires identifying duplicate entries, which can clutter your analysis or lead to inaccuracies. Knowing how to find duplicates in Excel is essential for maintaining data integrity. From using COUNTIF to find duplicates to applying advanced filters and PivotT
9 min read
How to Create a Form in Excel - A Step by Step Guide Creating forms in Excel is an efficient way to capture and organize data, whether youâre tracking inventory, collecting survey responses, or entering client information. Excel forms are customizable and easy to use, making data entry faster and more organized, especially when handling large datasets
7 min read
How to Compare Two Lists in Excel: 5 Easy Methods Comparing two lists in Excel is a powerful way to identify matches, differences, or duplicates within your data. Whether youâre working with inventory records, customer databases, or project tasks, knowing how to compare two lists in Excel can save time and improve accuracy. Excel offers several too
7 min read
How to Sort by Number in Excel? Excel is the world where you can organise your data. Organising data is a very big task especially when you are doing it on a large scale. In Excel, one can have around 17 million cells in one worksheet. So at this point, arranging the data in a systematic order is very important. If you are curious
2 min read
Pivot Tables in Excel - Step by Step Guide Pivot tables are one of the important and useful Excelâs features that allows us to quickly summarize, analyze and explore large datasets whether itâs sales figures, financial reports or any complex data. A pivot table helps us to rearrange, group and calculate data easily to spot trends and pattern
5 min read
How to Sort a Pivot Table in Excel : A Complete Guide Sorting a Pivot Table in Excel is a powerful way to organize and analyze data effectively. Whether you want to sort alphabetically, numerically, or apply a custom sort in Excel, mastering this feature allows you to extract meaningful insights quickly. This guide walks you through various Pivot Table
7 min read
How to Add a Column in Excel: Step-by-Step Guide Need to organize your data better in Excel but unsure how to add a column without disrupting your existing setup? Whether youâre working with a simple list or a complex table, inserting columns is a fundamental skill that increases productivity and keeps your data structured.This guide covers 4 easy
6 min read