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

Sorting data in Excel is a breeze, but what if you need to sort by more than one column? Excel allows you to do this easily, ensuring you can organize your data...

Sorting data in Excel is a breeze, but what if you need to sort by more than one column? Excel allows you to do this easily, ensuring you can organize your data in multiple ways. Let's dive into how you can sort by multiple columns in Excel.

Resize Rows and Columns
Resize Rows and Columns

Before we start, ensure your data is in a table format, with each column containing the information you want to sort by. Also, make sure your data is in the same sheet, as sorting across sheets isn't possible.

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

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 by category first, then by price.

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

To do this, follow these steps:

Step 1: Select the Data

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

First, select the data you want to sort. This includes the headers of the columns you'll be sorting by.

For our example, select the 'Category' and 'Price' columns, along with the data beneath them.

Step 2: Open the Sort Dialog Box

How To Move Multiple Rows and Columns In Excel - The Easy Way!
How To Move Multiple Rows and Columns In Excel - The Easy Way!

Once your data is selected, click on the 'Data' tab in the ribbon. In the 'Sort & Filter' group, click on the 'Sort A to Z' or 'Sort Z to A' button. This will open the 'Sort' dialog box.

Alternatively, you can right-click on the header of the column you want to sort by first and select 'Sort & Filter' > 'Sort A to Z' or 'Sort Z to A'.

Step 3: Choose the Sort Order

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

In the 'Sort' dialog box, you'll see that Excel has automatically selected the first column to sort by. In our case, it's the 'Category' column.

To sort by another column, click on the 'Add Level' button. This will add another level to the sort. Now, select the 'Price' column in the 'Column' dropdown. You can choose to sort 'Smallest to Largest' or 'Largest to Smallest'.

How to Sort Data in Excel Without Mixing Up Rows
How to Sort Data in Excel Without Mixing Up Rows
How to Transpose data from rows to columns in excel
How to Transpose data from rows to columns in excel
Excel Pro Trick: Combine Merge Multiple Columns into One Column with #Excel TOCOL Function Quickly
Excel Pro Trick: Combine Merge Multiple Columns into One Column with #Excel TOCOL Function Quickly
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
Sort data by color in Excel
Sort data by color in Excel
How to merge and combine Excel spreadsheets into one
How to merge and combine Excel spreadsheets into one
Excel Tricks: How to Freeze Rows or Columns in Excel
Excel Tricks: How to Freeze Rows or Columns in Excel
Autofit Rows and Columns in Excel with VBA
Autofit Rows and Columns in Excel with VBA
an excel spreadsheet showing the number and type of columns in each column,
an excel spreadsheet showing the number and type of columns in each column,
How to Rearrange Columns in excel quickly - Tamil
How to Rearrange Columns in excel quickly - Tamil
How to Hide Columns in Excel Without Deleting Data
How to Hide Columns in Excel Without Deleting Data
How to sort by multiple columns in Excel
How to sort by multiple columns in Excel
Post from Short and Clear Excel
Post from Short and Clear Excel
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. 🕺
Sort Data with Button in Excel | Multi-Column Sorting with One Click
Sort Data with Button in Excel | Multi-Column Sorting with One Click
How to add column in Excel
How to add column in Excel
How to Sort in Excel Rows or Columns Avoid Sort Problems
How to Sort in Excel Rows or Columns Avoid Sort Problems
a green poster with the words highlight every other row in excel and an image of a
a green poster with the words highlight every other row in excel and an image of a
How to Split Text to Columns in Excel with Multiple Delimiters using TEXTSPLIT in Excel Formula
How to Split Text to Columns in Excel with Multiple Delimiters using TEXTSPLIT in Excel Formula
How To Sort Based on Multiple Columns in Excel
How To Sort Based on Multiple Columns in Excel

Click 'OK' to apply the sort. Your data will now be sorted by category first, then by price.

Sorting by More Than Two Columns

Sorting by more than two columns follows the same process. Let's say you want to sort by 'Category', then 'Price', then 'Quantity'.

After adding the first level ('Category'), click on the 'Add Level' button again to add a second level. Select the 'Price' column, choose the sort order, then click 'OK'.

Now, click on 'Add Level' again to add a third level. Select the 'Quantity' column, choose the sort order, then click 'OK'. Your data will now be sorted by category, then price, then quantity.

Sorting in Descending Order

By default, Excel sorts in ascending order (A to Z or smallest to largest). If you want to sort in descending order (Z to A or largest to smallest), click on the 'Sort & Filter' button in the 'Data' tab, then select 'Sort Largest to Smallest' or 'Sort Z to A'.

You can also do this in the 'Sort' dialog box by changing the 'Sort On' dropdown to 'Descending'.

Mastering how to sort by more than one column in Excel opens up a world of data organization possibilities. Whether you're sorting by category, price, quantity, or any other combination of columns, Excel has you covered. Happy sorting!