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

Sorting an Excel spreadsheet by multiple columns is a common task when you need to organize data based on several criteria. This can be particularly useful when...

Sorting an Excel spreadsheet by multiple columns is a common task when you need to organize data based on several criteria. This can be particularly useful when you want to analyze data from different perspectives. Here, we'll guide you through the process, ensuring your data is sorted efficiently and accurately.

How to Use Columns Formula in Excel
How to Use Columns Formula in Excel

Before we dive into the steps, ensure you're using a version of Excel that supports the features we'll discuss. The process is similar across Excel 2016, 2019, and the latest version of Microsoft 365.

How to Sort Columns Like a Pro in Google Sheets
How to Sort Columns Like a Pro in Google Sheets

Sorting by Two Columns

Sorting by two columns is a great starting point. This allows you to sort your data based on the values in two different columns.

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

Let's say you have a spreadsheet of products with 'Category' and 'Price' columns, and you want to sort by category first, then by price within each category.

Sorting by the First Column

How to Sort in Excel Rows or Columns Avoid Sort Problems
How to Sort in Excel Rows or Columns Avoid Sort Problems

To start, click on any cell within the range you want to sort. Then, click on the 'Sort & Filter' button in the 'Home' tab. Select 'Sort A to Z' or 'Sort Z to A' based on your preference.

In our example, choose 'Sort A to Z' to sort the 'Category' column in ascending order.

Sorting by the Second Column

How to Sort by Column in Excel and Keep Rows Together (4 Easy Ways) - ExcelDemy
How to Sort by Column in Excel and Keep Rows Together (4 Easy Ways) - ExcelDemy

Now, you'll sort by the 'Price' column. Click on the 'Options' button in the 'Sort' dialog box. Under 'Then by', select the 'Price' column and choose your sort order.

Click 'OK' to apply the sort. Your data should now be sorted by category, then by price within each category.

Sorting by More Than Two Columns

How to Sort by Name in Excel (3 Examples) - ExcelDemy
How to Sort by Name in Excel (3 Examples) - ExcelDemy

Sorting by multiple columns follows the same process. You can sort by up to three columns in the 'Sort' dialog box, or more using the 'Advanced' sort feature.

For instance, you might want to sort by 'Category', then 'Price', and finally 'Quantity'. Here's how:

How to Sort Two Columns to Match in Excel (2 Simple Methods) - ExcelDemy
How to Sort Two Columns to Match in Excel (2 Simple Methods) - ExcelDemy
How to Sort Columns in Excel Without Mixing Data (6 Methods) - ExcelDemy
How to Sort Columns in Excel Without Mixing Data (6 Methods) - ExcelDemy
How to Combine Multiple Columns into One Column in Excel - ExcelDemy
How to Combine Multiple Columns into One Column in Excel - ExcelDemy
How to Alphabetize in Google Docs on PC and Mobile App in 2021
How to Alphabetize in Google Docs on PC and Mobile App in 2021
How to use SUMPRODUCT Function with Multiple Columns in Excel: 4 Suitable Methods - ExcelDemy
How to use SUMPRODUCT Function with Multiple Columns in Excel: 4 Suitable Methods - ExcelDemy
How to Sort by Column Without a Header - 5 Methods - ExcelDemy
How to Sort by Column Without a Header - 5 Methods - ExcelDemy
How to Split One Column into Multiple Columns in Excel - ExcelDemy
How to Split One Column into Multiple Columns in Excel - ExcelDemy
How to Create Column Sparklines in Excel (5 Suitable Examples) - ExcelDemy
How to Create Column Sparklines in Excel (5 Suitable Examples) - ExcelDemy
Excel VBA to Custom Sort: 5 Easy Methods - ExcelDemy
Excel VBA to Custom Sort: 5 Easy Methods - ExcelDemy
Combine Multiple Excel Files into One Workbook with Separate Sheets (4 Methods) - ExcelDemy
Combine Multiple Excel Files into One Workbook with Separate Sheets (4 Methods) - ExcelDemy
How to Sum Based on Column and Row Criteria in Excel (7 Ways) - ExcelDemy
How to Sum Based on Column and Row Criteria in Excel (7 Ways) - ExcelDemy
Tudo sobre Excel
Tudo sobre Excel
How to Select Column in Excel (6 Easy Ways) - ExcelDemy
How to Select Column in Excel (6 Easy Ways) - ExcelDemy
Excel Auto Sort When Data Changes (9 Examples) - ExcelDemy
Excel Auto Sort When Data Changes (9 Examples) - ExcelDemy
How to Select Specific Columns in Excel - 4 Easy Methods - ExcelDemy
How to Select Specific Columns in Excel - 4 Easy Methods - ExcelDemy
How to Split Text in Excel into Multiple Rows: 6 Methods - ExcelDemy
How to Split Text in Excel into Multiple Rows: 6 Methods - ExcelDemy
How to Swap Columns and Rows in Excel - 9 Methods - ExcelDemy
How to Swap Columns and Rows in Excel - 9 Methods - ExcelDemy
How to Sum Columns in Excel When Filtered (7 Ways) - ExcelDemy
How to Sum Columns in Excel When Filtered (7 Ways) - ExcelDemy
Advanced Conditional Formatting Techniques in Excel - ExcelDemy
Advanced Conditional Formatting Techniques in Excel - ExcelDemy
How to Add and Subtract Columns in Excel (5 Easy Methods) - ExcelDemy
How to Add and Subtract Columns in Excel (5 Easy Methods) - ExcelDemy

Using the 'Sort' Dialog Box

After sorting by 'Category' and 'Price', click on the 'Options' button again. Under 'Then by', select 'Quantity' and choose your sort order. Click 'OK' to apply the sort.

This will sort your data by category, then by price, and finally by quantity.

Using the 'Advanced' Sort Feature

For more complex sorting needs, use the 'Advanced' sort feature. After sorting by 'Category' and 'Price', click on the 'Options' button, then click on 'Advanced'.

In the 'Advanced' dialog box, you can add up to three levels of sorting. Click 'OK' to apply the sort.

Sorting an Excel spreadsheet by multiple columns is a powerful way to organize and analyze data. With a bit of practice, you'll be sorting your data efficiently and effectively in no time. Happy sorting!