The Basic Excel Filter (Excel AutoFilter)
Before activating the Excel Filter, it is advisable to select the header row or the header cells for the columns that you want to add the filter to. If you don't select a header row or cells, then Excel will attempt to 'guess' which cells are your headers and, as long as the current active cell is within the data range to be filtered, Excel will usually guess this correctly. However, there may be occasions when you need to specify which heading cells to add a basic Excel filter to - you do this by highlighting the cells. The Excel Autofilter menu is slightly different in Excel 2003 and Excel 2007. Therefore Excel 2003 and Excel 2007 are addressed separately below: Excel 2003 Basic FilterActivating the Basic Excel Filter
In order to activate the basic Excel filter, select the Data menu at the top of your spreadsheet, and from this, select the option Filter and then the option AutoFilter. You should now have the drop-down menus on each of your header cells, which can be used to select the rows to be displayed.
The example spreadsheet on the right shows sales figures for different sales people, over 3 months. The basic Excel filter has been applied to the header rows of the three columns and the drop-down menu for the 'Sales' column is displayed. It is seen, that the drop-down menu offers numerous filtering options. These are:
Once selected, the (Top 10...) and the (Custom...) options are the same in Excel 2003 and Excel 2007. These options are described in the following 2 sections. (Top 10...)
The (Top 10...) option is only available for columns that Excel identifies as containing numeric values. This Excel filter option allows you to display only the N highest or the N lowest values from the current column. If you click on this option, Excel brings up an options box, as shown on the right. This contains 3 options:
(Custom...)The (Custom...) option allows you to define a condition, which if satisfied by a cell, will result in the corresponding row being displayed. This option contains numeric and text specific conditions. However, some of the options are only suited to text data and some are only suitable for numeric data.
If your column contains numerical values (including dates), you can use the criteria 'equals', 'does not equal', 'is greater than', 'is greater than or equal to', 'is less than' or 'is less than or equal to'. If your column contains text values, you can use the criteria 'equals', 'does not equal', 'begins with', 'does not begin with', 'ends with', 'does not end with', 'contains' or 'does not contain' Up to 2 criteria can be combined, separated by an 'and' or an 'or'. Removing the Excel FilterTo remove the basic Excel filter, simply select the Data menu at the top of your spreadsheet, and from this, select the option Filter and then the option AutoFilter. You will see that, when you have a filter in your current spreadsheet, there is a tick next to the AutoFilter option. Selecting this option with the mouse, unticks the option and removes the filter. Excel 2007 Basic FilterActivating the Basic Excel Filter
In order to activate the basic Excel filter, select the Data tab at the top of your spreadsheet, and from this, select the option Filter. You should now have the drop-down menus on each of your header cells, which can be used to select the rows to be displayed.
The example spreadsheet on the right shows sales figures for different sales people, over 3 months. The basic Excel filter has been applied to the header rows of the three columns and the drop-down menu for the 'Sales' column is displayed. It is seen, that the drop-down menu offers a simple filter on the contents of the cells in the filtered column. These are:
The user can untick the values in rows that (s)he does not wish to display. A new feature of Excel 2007 is the ability to filter by colour. This may be text colour or the colour of a cell background. Also in the above image, is the option to apply number filters. Excel has displayed this option because the data in the filtered column is numeric (note that for columns containing text data, Excel offers text-specific filters instead, such as 'Begins With', 'Ends With', 'Contains', etc) The Excel filters in the Number Filters... category are:
Further explanation of the (Top 10) and the (Custom) options are given below. (Top 10...)
The (Top 10...) option is only available for columns that Excel identifies as containing numeric values. This Excel filter option allows you to display only the N highest or the N lowest values from the current column. If you click on this option, Excel brings up an options box, as shown on the right. This contains 3 options:
(Custom...)The (Custom...) option allows you to define a condition, which if satisfied by a cell, will result in the corresponding row being displayed. This option contains numeric and text specific conditions. However, some of the options are only suited to text data and some are only suitable for numeric data.
If your column contains numerical values (including dates), you can use the criteria 'equals', 'does not equal', 'is greater than', 'is greater than or equal to', 'is less than' or 'is less than or equal to'. If your column contains text values, you can use the criteria 'equals', 'does not equal', 'begins with', 'does not begin with', 'ends with', 'does not end with', 'contains' or 'does not contain' Up to 2 criteria can be combined, separated by an 'and' or an 'or'. Removing the Excel FilterTo remove the filter from an Excel 2007 spreadsheet, simply select the Data tab at the top of your spreadsheet, and from within this, click on the Filter option. Where Did I Go Wrong?Two commonly encountered problems with the Excel Autofilter are:
These are dealt with separately below. Filter Stops Working Part Way Down the SpreadsheetIf your Excel Autofilter works for the top part of the data in your spreadsheet, but stops working part way down, this is probably because you have added more data, since initially activating the Filter. Solution: In this case, remove the autofilter and then activate it again. This causes the new data to be added to the range of filtered cells. The 'Custom' Filter Fails to Display Rows That Satisfy the Specified ConditionIf you use the (Custom...) option and the condition that you specify fails to work, this may be because you are using a text condition (ie. 'begins with', 'does not begin with', 'ends with', 'does not end with', 'contains' or 'does not contain') on numerical values, OR because you are using a numerical condition (ie. 'is greater than', 'is greater than or equal to', 'is less than' or 'is less than or equal to') on text values. Solution: In this case, you can get the filter to work as expected by changing the column data to the type that relates to the condition you wish to apply. For example, to get the 'begins with' condition to work on a column of numbers, you will need to convert the numbers to text before applying the Custom filter. One way to do this is using Excel's Text To Columns tool:
The data in your selected cells should now be stored as text within Excel. Similarly, you could have chosen to convert text values (consisting of numbers) to numerical values, by simply selecting the column data format General within the Text To Columns tool. For more information on the Excel filtering, visit the Microsoft Office website (link opens in a new window). |
||||||||||
|
|
||||||||||
Copyright © 2008-2010 ExcelFunctions.net |