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.

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.

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.

To do this, follow these steps:

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.

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 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'.




















Again, highlight the data range you want to sort.
For our example, select A1:D10.
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!