It’s easy tosort data in Excelalphabetically or numerically. But maybe you want to sort based on color, formatting, or a list like months of the year. We’ll show you different ways to sort data in Excel.

You can use the quick sort for those basic options or create a custom sort that gives you more flexibility. Whatever your data, be it text or numbers, take a look at these various ways you can sort it.

Sort options on the Data tab

A to Z Sorting

If you want to sort by text in alphabetical order or numbers like currency or decimals in numerical order, you can do this in Excel in just a few clicks.

Related:How to Sort Values in Microsoft Excel

Select the data you want to sort and open the Sort tool one of these ways:

Your data is then sorted in the order you picked, either alphabetically from A to Z or the reverse. This option alsosorts numbersthe same way, from lowest to highest or the opposite.

Sorted data from Z to A

You can also use the A to Z sorting when you create a custom sort which we’ll describe next.

Row Sorting

For more advanced options in Excel like sorting by row instead of column, you can create a custom sort.

Select your data, go to the Data tab, and click “Sort” in the Sort & Filter section of the ribbon. Then, click “Options” at the top of the Sort box.

Options button in the Sort box

In the small pop-up box, mark the Sort Left to Right option, check the box for Case Sensitive at the top if you like, and click “OK.”

You can then continue setting up your sort by row with the drop-down boxes. Depending on the options you pick in the first drop-down boxes, you’ll be able to sort from A to Z, top to bottom, or another option.

Sort Left to Right for rows

Color Sorting

Also using the custom sort option in Excel, you cansort by color. This allows you to sort your data by the cell or font color. Select your data and then “Sort” on the Data tab to open the Sort box.

Related:How to Sort by Color in Microsoft Excel

Choose the following in the drop-down boxes:

Click “OK” when you finish, and you’ll see your data sorted by your chosen color.

Conditional Formatting Icon Sorting

If you take advantage ofdisplaying icons for your data in Excelbased on conditional formatting, you may use this as a sort option too. Select your data and then “Sort” on the Data tab to open the Sort box.

Related:How to Use Icon Sets to Represent Values in Microsoft Excel

Rows listed in the Sort by menu

Click “OK” when you finish, and you’ll see your data sorted by your chosen conditional formatting icon.

List Sorting

One convenient sorting option many don’t realize exists in Excel is list sorting. For instance, you may want to sort by day of the week or month of the year. Select your data and then “Sort” on the Data tab to open the Sort box.

You’ll see the list appear in the Order drop-down menu in the Sort box. Click “OK” to sort your data by the list.

Sort by color settings

You’ll then see your data sorted by your chosen list.

New List Sorting

Another way to sort using a list is with a new custom list. This is convenient if you haven’t had time tocreate the custom listin Excel yet, because you can make it with the sort tool. Select your data and then “Sort” on the Data tab to open the Sort box.

Related:How to Create a Custom List in Microsoft Excel

You’ll see the list in the Sort box’s Order drop-down menu. Click “OK” to sort your data by this list.

You’ll then have your data sorted by the new custom list you just created.

Data sorted by color

Multi-Level Sorting

If you’d like to sort by more than one column or row in Excel, you may add another level when you create acustom sort. For example, you might sort alphabetically by name first and color second. And, you can add levels to any of the above sorting methods if you like.

Related:How to Use the Microsoft Excel SORT Function

In the Sort box, set up your first sort option with the drop-down boxes. Then, choose “Add Level” and set up the secondary sort you want to use.

Keep in mind that, Excel sorts your data based on this list of levels from top to bottom. So if needed, you can rearrange them. Select a level and then use the arrow buttons to move that level up or down.

Sort by icon settings

When you finish, click “OK” to apply the sort for your multiple levels.

Sorting your data in Microsoft Excel helps you see it the way you need to for analysis or review. So keep these sorting methods in mind and also look athow to sort by date in Excel.

Data sorted by icon

Available lists to sort by