
Tips.Net > ExcelTips Home > Filtering > AutoFilter > 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.
Tip #3036 applies to Microsoft Excel versions: 97 2000 2002 2003
Save Time and Money! Many people need to keep track of employee time, but don't know where to start when it comes to creating a spreadsheet. Here's a way to save time, effort, and money with ready-to-use timesheet templates.
Check out Timesheet Templates today!
It doesn't matter if you are a beginner or expert, the ExcelTips archives are the fastest way to improve your productivity. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
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