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.

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.

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.

To do this, follow these steps:

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.

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

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




















Click 'OK' to apply the sort. Your data will now be sorted by category first, then by price.
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.
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!