Sort Excel Data by Multiple Columns: A Step-by-Step Guide

Sorting data in Excel is a common task, and often, you need to sort by more than one column. This can be useful when you want to prioritize your data based on m...

Sorting data in Excel is a common task, and often, you need to sort by more than one column. This can be useful when you want to prioritize your data based on multiple criteria. Let's explore how to achieve this in a step-by-step manner.

Excel Tutorial - Sort Data Automatically based on multiple columns without using macros
Excel Tutorial - Sort Data Automatically based on multiple columns without using macros

Before we dive into the process, ensure that your data is in a table format. This means that each column should have a header, and your data should start from the second row. This will make sorting easier and more accurate.

How to Sort Data in Excel Without Mixing Up Rows
How to Sort Data in Excel Without Mixing Up Rows

Sorting by Two Columns

Sorting by two columns is the most common scenario. Let's say you have a list of products with 'Category' and 'Price' columns, and you want to sort them first by category and then by price.

Excel Sort by Column or Row One or Multiple Sort by Cell Color Font Color Customize Sort
Excel Sort by Column or Row One or Multiple Sort by Cell Color Font Color Customize Sort

To do this, follow these steps:

Step 1: Select the Data Range

How to Transpose data from rows to columns in excel
How to Transpose data from rows to columns in excel

Highlight the data range you want to sort. This should include the headers at the top.

For example, if your data starts from A1 and ends at D10, select A1:D10.

Step 2: Open the Sort Dialog Box

Grouping Rows/Columns in Excel📚
Grouping Rows/Columns in Excel📚

Click on the 'Sort & Filter' button in the 'Home' tab. Alternatively, you can use the keyboard shortcut 'Alt + A, S, S'.

The 'Sort' dialog box will open. Here, you'll specify the sort criteria.

Sorting by More Than Two Columns

Sort data by color in Excel
Sort data by color in Excel

Sorting by more than two columns follows the same process. You just need to add more sort criteria in the 'Sort' dialog box.

For instance, you might want to sort your product list by 'Category', 'Price', and then 'Stock'.

Excel Sort By Column, By Row, By Color, By Your Own Custom List
Excel Sort By Column, By Row, By Color, By Your Own Custom List
How to merge and combine Excel spreadsheets into one
How to merge and combine Excel spreadsheets into one
217K views · 837 reactions | Geography Data Types in Excel‼️ Level up in Excel in one hour!!! 💃🏼 You’re invited to a FREE Excel class w/ Miss Excel! 🎉 Registration + Replay Access = linktr.ee/CheatSheets 📚 Topic: | CheatSheets
217K views · 837 reactions | Geography Data Types in Excel‼️ Level up in Excel in one hour!!! 💃🏼 You’re invited to a FREE Excel class w/ Miss Excel! 🎉 Registration + Replay Access = linktr.ee/CheatSheets 📚 Topic: | CheatSheets
Excel Tutorial to Sort Data Automatically without using Macros
Excel Tutorial to Sort Data Automatically without using Macros
11K views · 3.5K reactions | This NEW Excel function is a lifesaver! 😎 Learn how to sort data automatically in Excel using SortBy! ✨ #excel #spreadsheets #accounting #exceltips #finance #corporate #exceltricks #wo | Easilyexcel
11K views · 3.5K reactions | This NEW Excel function is a lifesaver! 😎 Learn how to sort data automatically in Excel using SortBy! ✨ #excel #spreadsheets #accounting #exceltips #finance #corporate #exceltricks #wo | Easilyexcel
Resize Rows and Columns
Resize Rows and Columns
Find Duplicates in Excel Instantly | Smart Formula Trick You Must Know 💥 | Excel Tips for Beginners
Find Duplicates in Excel Instantly | Smart Formula Trick You Must Know 💥 | Excel Tips for Beginners
How to Add a Column in Excel Without Moving Data the Wrong Way
How to Add a Column in Excel Without Moving Data the Wrong Way
How to Use Columns Formula in Excel
How to Use Columns Formula in Excel
How to Split Text Data of a Cell to Column in Excel - ExcelDataPro
How to Split Text Data of a Cell to Column in Excel - ExcelDataPro
How to delete all blank columns in your worksheet at once using Go To Special. 🕺
How to delete all blank columns in your worksheet at once using Go To Special. 🕺
a screenshot of a computer screen with the text tap new and start entering data
a screenshot of a computer screen with the text tap new and start entering data
How to Sort Columns Like a Pro in Google Sheets
How to Sort Columns Like a Pro in Google Sheets
How to Sort in Excel Rows or Columns Avoid Sort Problems
How to Sort in Excel Rows or Columns Avoid Sort Problems
Sort Data with Button in Excel | Multi-Column Sorting with One Click
Sort Data with Button in Excel | Multi-Column Sorting with One Click
Post from Short and Clear Excel
Post from Short and Clear Excel
Excel Trick: Custom Sort How To do it!
Excel Trick: Custom Sort How To do it!
Autofit Rows and Columns in Excel with VBA
Autofit Rows and Columns in Excel with VBA
How to Group Data in Excel
How to Group Data in Excel
Excel Pro Tricks: Get Specific Columns from Multiple Data Ranges in Excel using CHOOSECOLS Formula
Excel Pro Tricks: Get Specific Columns from Multiple Data Ranges in Excel using CHOOSECOLS Formula

Step 1: Select the Data Range (Same as above)

Again, highlight the data range you want to sort.

For our example, select A1:D10.

Step 3: Add More Sort Criteria

In the 'Sort' dialog box, click on 'Add Level' to add more sort criteria. For our example, click 'Add Level' twice to add three sort criteria.

In the first 'Column' dropdown, select 'Category'. In the second 'Column' dropdown, select 'Price'. In the third 'Column' dropdown, select 'Stock'.

Ensure that the 'Sort On' option is set to 'Values' for each criterion. Also, make sure that the 'Order' is set to 'Smallest to Largest' for 'Category' and 'Price', and 'Largest to Smallest' for 'Stock'. This will sort the data first by category, then by price, and finally by stock.

Click 'OK' to apply the sort.

Now, you know how to sort data by more than one column in Excel. This can be a powerful tool for organizing and analyzing your data. Happy sorting!