A client recently e-mailed me inquiring about filtering in his Excel worksheet. It seems he had a list of data in column A and one in Column B. He had created a conditional format such that any data that was in column A and also in colum B, would turn a bolded red color. He wanted to be able to sort by that color.
Fortunately, that is not all that difficult to do.
Assuming that all your data and conditional formats are already set up, follow the steps below to learn how:
- Select all the cells you would like included in your sort.
- Display the Data tab of your Ribbon.
- Click the Sort tool to display the dialog box.
- Using the Sort By drop-down list, select Column A (where your conditional formatting is applied).
- Using the SortOn drop-down list, select Font Color.
- Using the Order drop-down list, select the color you would like to sort by (red).
- Using the second drop-down list under Order, specify whether you want the red font cells to be on the top or bottom of your list.
- Click OK.
If the color of the cells change because of the conditional formatting, you can later re-sort the table and you will have no problems.
Should you want to filter by the colors, that can also be easily accomplished using an AutoFilter.
Follow the steps below to learn how:
- Turn on AutoFiltering for your data, by:
- Selecting any cell in your list.
- Displaying the Data tab of your Ribbon.
- In the Sort & Filter group, clicking the Filter tool. Excel will determine where your column labels are located and adds pull-down arrows to the right side of each label’s cell.
- Click the down-arrow at top of Column A, and you will see a lot of options available to you.
- Select Filter by Color and Excel will display a list of the colors that are in the column.
- Select the color that you want displayed (not filtered out). In most cases, you will select Automatic.