bottom
Great ExcelTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > ExcelTips Home > Formatting > Conditional Formatting > Sorting or Filtering by Conditional Format Results

Sorting or Filtering by Conditional Format Results

Summary: Conditional formatting is a great feature in Excel. Unfortunately, you can’t sort or filter by the results of that formatting. Here’s why. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

John asked if it is possible to sort or filter based on the conditional formatting in a range of cells. He has a list of values in column A and a list in column B. He created a conditional format that makes any values in column A that are also in column B appear as bold red, and he wanted to sort or filter by that result.

The short answer is that no, you cannot sort by conditional formatting results. Doing so is much more complex than one might think, as shown at this page on Chip Pearson's Web site:

http://www.cpearson.com/excel/CFColors.htm

The easiest answer is to simply recreate your conditional formula in column C, to the right of your two columns of data. The formula should return True or False, depending on whether the value in column A is found somewhere in column B. With the True/False value in column C, you can filter or sort based on what is there.

Tip #2384 applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007


Save Time! You can have this tip (and several hundred just like it) in the ExcelTips annual archives. Imagine having over 400 tips available at your fingertips, in each annual volume.

Helpful Links

Ask an Excel Question
Make a Comment

Tips.Net Home
Vital News Home

ExcelTips FAQ
ExcelTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

 

Great Info!

Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)