Written by Allen Wyatt (last updated April 10, 2024)
This tip applies to Excel 2007, 2010, and 2013
Alan often uses Excel to organize text-based information. He uses the AutoFilter tool to view data with common elements. He noticed that cells with more than 254 characters do not display in the AutoFilter drop-down checklist area. As many of his worksheets have cells with character counts above 254, the limitation means he cannot view all relevant data using AutoFilter. (Alan knows he can use the text filter option to get the results he wants.) He wonders if the 254-character limit on what displays in the AutoFilter drop-down list is an inherent limitation of Excel or if there is something that can be done to cause these cells to display in the drop-down.
It appears that the 254-character limit is built into Excel. While the number of items that can be displayed in the drop-down list has increased over the the last several versions (it is now set at 10,000 items), the length of those individual items is still limited to 254 characters.
How, then, to get around this limitation? The only potential workaround that I could come up with is to use a separate column that pulls out the unique information in a cell and then you can filter on that column. For instance, the formula in the cell could look at the length of the text in the original cell, and if it is more than 254 characters and those 254 characters are the same as the 254 characters in the next or previous cell, then it pulls the next 254 characters into the cell. If they are not the same, then the formula pulls the first 254 characters from the cell.
The rationale behind such an approach is that if the text in a range of cells has the first 254 characters all the same, then those 254 characters are of little value in differentiating the contents of one cell from another. By pulling 254 characters that are more appropriate for differentiating the cell contents, then you can filter the cells more meaningfully.
Of course, if the information you are working with in Excel is pulled from an external source (such as a database), then you might want to consider modifying how the data is generated or pulled so that a more limited (and meaningful) text string is worked with. For instance, you might modify the routines used to generate data so that common prefixes are eliminated or common phrases are replaced with abbreviations of some sort.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13164) applies to Microsoft Excel 2007, 2010, and 2013.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
Want a tool that will help you toggle AutoFilter on and off? Excel provides some tools you can use, but you need to be ...
Discover MoreExcel's AutoFilter tool is a great way to make a long list of items much more manageable. This tip explains how to set up ...
Discover MoreWhen you have a column full of names, you may want to get a count of how many of those names are unique. You can make ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2018-05-08 02:37:53
Saskia
I don't understand the problem! I am working with Excel 2016. I have a filtered area with a column containing more than 254 characters: I see them all.
Can you show me an example when this problem occurs?
2014-07-13 16:07:22
Ashley
You could also just use another column to find the information you need. If your text in column G for example, then in column F (or wherever) you could use =not(iserror(find("search text", g2))). Then, when you turn your auto-filter on, you could just select the "TRUE" values in column F. This doesn't solve you display issue for the drop down filter list, but you probably shouldn't be storing that much text in a single cell anyway (in my humble opinion).
I hope this helps.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments