Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Converting to Octal

Filtering Columns for Unique Values

Printing Multiple Worksheets on a Single Page

Changing the Default Font

Creating a Drawing Object

Determining a Value of a Cell

Understanding Macros

 

More Than Two Conditions for Custom AutoFiltering

Summary: Using the AutoFilter feature of Excel, you can define a custom filter that controls what information you see from a data table. Custom AutoFilters allow you to specify one or two criteria to be applied in the filtering process. This tip describes ways you can actually use more than two criteria. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)

Excel's AutoFilter is a great tool for viewing portions of a data table. If you turn on the AutoFilter (Data | Filtering | AutoFilter), drop-down arrows appear at the top of each column of your data table. Using the choices available through each drop-down, you can pick what data you want displayed from the data table. If you choose the Custom option from a drop-down list, Excel displays the Custom AutoFilter dialog box. (Click here to see a related figure.)

This dialog box allows up to two conditions to be defined--conditions which will affect what is displayed. What if you want to specify more than two conditions, however? Unfortunately, there is no direct way to do this. There is an "indirect" way, however: You could create a new column in your data table that will contain a formula that indicates whether a record should be displayed or not. The formula could contain any number of IF, AND, OR, and NOT conditions to render either a True or False result. You can then use AutoFilter to display only those rows that return True as a result, or only those that return False.

You always have the option, of course, to use the advanced filtering capabilities of Excel. As described in other ExcelTips, advanced filtering allows you to create complex criteria that control what is displayed from a data table.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3036) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003

PivotTables Got You Perplexed? PivotTables for the Faint of Heart shows how you can start using Excel's PivotTable tool right away to spin your data into gold! You discover how easy it really is to crunch the numbers you need to crunch. Uncover the power of creating PivotTables, editing them, formatting them, customizing them, and much more.
 
Check out PivotTables for the Faint of Heart today!