Search Contextures Sites
More AutoFilter Tutorials
Tips for working with an AutoFilter, and some workarounds for problems you may encounter.
- Video: Problem Pasting in Filtered List
- Video: Ungroup Dates in Filter Drop Down
- Ungroup Dates in Filter Drop Down
- Limits to AutoFilter Dropdown Lists
- Count of Filtered Records in Status Bar
- AutoFilter for Text in a Long String
- Download the Sample File
This video shows the problems that you can have when you try to copy and paste data into a filtered list. See why the problem occurs, and a couple of workarounds, to avoid the problem. Also, watch the second video, to see a keyboard shortcut for pasting in filtered rows.
To download the sample file used in these videos, click here: filtercopypaste.zip The file is in xlsx format, and does not contain macros.
If you are copying and pasting in the same rows in a filtered list, you can use the shortcut Ctrl + R, to fill right, or use a Ribbon command to fill left. Watch this video to see the steps..
By default, when you turn on an AutoFilter, dates are grouped in the drop down list. You can turn this feature off, to show the full list of dates.
To see the steps for turning off date grouping in an Excel filter, please watch this short video. Written instructions are below the video.
By default, when you turn on an AutoFilter, dates are grouped in the drop down list.
You can manually change a setting, to ungroup them in the current workbook. You can also use programming to turn the grouping on or off.
Follow these steps to turn off the Date Grouping feature in the current workbook:
- On the Ribbon, click the File tab, then click Options
- Click the Advanced category
- Scroll down to the Display Options for This Workbook section
- Remove the check mark from Group Dates in the AutoFilter menu.
- Click OK to apply the setting change.
In Excel 2003, and earlier versions, an AutoFilter dropdown list will only show 1000 entries. As a result, in a large database, the AutoFilter dropdown may not show all the items in the column. (This limit was raised to 10,000 in Excel 2007.)
You could add a new column, and use a formula to split the list into two groups, e.g.:
to split the list into three groups, nest one IF formula
inside another, e.g.:
Or, for a column with thousands of unique entries, use a formula which extracts the first two or three letters, e.g.:
Filter on this column first, then by the intended criteria.
Normally, after you have applied an AutoFilter, the Status Bar shows a count of visible records.
Sometimes it just says, "Filter Mode."
This can happen when your list has many formulas. There are articles in the Microsoft KnowledgeBase that explain:
The Status Bar will also show "Filter Mode" if anything is changed in the list, after a filter has been applied. For example, if you format a cell, or type a number in one of the records, the 'Filter Mode' message will appear in the Status Bar.
You can see the Filter Mode problem and workarounds in the following video, and written instructions are below the video
If the status bar says "Filter Mode", you can follow the workaround steps in this video to see the number of filtered records.
For a record count of the visible rows which contain data, you can use the Subtotal function in a formula in the same row as your headings. For example, to count the visible entries in column D which contain numbers, you could use this formula:
The 2 in the first argument tells Excel to use the COUNT function on the visible cells in the range.
To count rows that contain text, you could change the formula:
The 3 is for the COUNTA function, and the -1 removes one for the row which contains the column heading.
NOTE: Blank cells will not be counted -- use a column with no blank cells.
(from Excel MVP Dave Peterson)
1. Select a column that you know has data in each cell.
2. Right-click on the embossed area at the right side of the status bar.
3. Choose Count -- it'll tell you how many are in the selected cells.
4. (If you included the header rows, subtract them.)
To see how many total rows, choose Data>Filter>Show All, select a column that has data in each cell, and look at the bottom of the screen.
With this feature you can also get Min/Max/Average/etc. with just simple mouse clicks and selections.
You can use the Custom option to filter for cells that contain specific text. However, if the text is located after the 255th character in the cell, it won't be found. Also, the long text strings don't appear in the dropdown list in the heading cell.
As a workaround, enter the search text string in a cell on the worksheet. Then add a formula to check for the text.
- Insert a new column in the database, and in the heading cell, type the word you're searching for, e.g.: Shop
- Enter the following formula in row 2 of the new column:
- Copy the formula down to the last row
- Filter column B for TRUE
- To filter for a different word, type a new string in cell B1, and reapply the filter in column B.
Note: SEARCH is not case sensitive. For a case sensitive filter, use FIND, e.g.:
Download a zipped Excel AutoFilter workbook with sample data.
Contextures Inc., Copyright ©2015
All rights reserved.