How to Sort by Color in Excel (4 Criteria)

Example 1 – Sort by Single Color in Excel

Step 1:

➤ Select the entire table.

➤ Under the Data ribbon, select the Sort option from the Sort & Filter drop-down.

A dialog box will open.

sort by single color in excel

Step 2:

➤ Select Donor from the Sort by list.

➤ Select Cell Color from the Sort On list.

➤ Under the Order bar, choose the only color available (yellow) in the list that will be on top of the selected table.

➤ Press OK.

sort by single color in excel

The rows with the highlighted donor names will appear on top.

sort by single color in excel

Read More: How to Add Sort Button in Excel


Example 2 – Sort by Cell Color in Excel (Multiple Layers)

Step 1:

➤ Select the entire table.

➤ Open the Sort dialog box following Example 1.

➤ Select Medium from the Sort by list.

➤ Select Cell Color from the Sort On list.

➤ Under the Order bar, choose an order of color that will be on top of the selected table.

➤ Press OK.

sort by cell color in excel

You will see that the table data is sorted by blue rows on top. But the green and orange rows are yet to be sorted. To do this, we have to add another level in the Sort dialog box.

sort by cell color in excel

Step 2:

➤ Open the Sort dialog box after selecting the entire table.

➤ Click on Add Level button and you’ll find another row with Sort options.

➤ Select Medium from the Then by list and Cell Color from the Sort on list.

➤ From the Order list, now choose green or orange that you want to see under the blue rows in the table.

➤ Press OK.

sort by cell color in excel

It will organize the dataset with the rows sorted by selected colors on top.

sort by cell color in excel

Read More: How to Sort Alphanumeric Data in Excel


Example 3 – Sort by Font Color in Excel

Steps:

➤ Select the entire table and open the Sort dialog box from the Sort & Filter drop-down under the Data tab.

➤ Under the Column bar, select Donation from the Sort by list.

➤ Select Font Color from the Sort On list.

➤ From the Order list, choose a color that you want to see on top.

➤ Press OK.

sort by font color in excel

By adding another level for sorting more color fonts, you’ll find a new data table sorted by the color fonts present in a single column.

sort by font color in excel

Read More: How to Remove Sort by Color in Excel


Example 4 – Sort by Icon Color in Excel

Steps:

➤ Select the entire table and open the Sort dialogue box.

➤ Select Date from the Sort by list.

➤ From the Sort On list, select the Conditional Formatting Icon.

➤ Choose a flag color from the Order list which you want to see on top.

➤ Press OK.

sort by icon color in excel

After rearranging the order of all colors available in the table, you should get a modified data table as shown in the following image.

sort by icon color in excel

Read More: Excel Sort and Ignore Blanks


Download Practice Workbook


Related Articles


<< Go Back to Sort in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nehad Ulfat
Nehad Ulfat

NEHAD ULFAT is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET but switched gears, working as a content developer.  In this role, he creates techy content all about Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo