XL5: AutoFilter Doesn't Filter Strings That Contain Operator

Last reviewed: September 12, 1996
Article ID: Q121404
The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0

SYMPTOMS

In Microsoft Excel, when you use the AutoFilter feature to filter a string in your list that contains an operator, such as an equal sign "=", the item is not filtered.

CAUSE

This behavior occurs because, if your filter a string in your list that contains an operator (such as the equal sign "=", greater than sign ">", and less than sign "<") the operator is used as the filter comparison operator.

For example, if you filter the item "'=1" in your list, the item does not appear in your filtered list. Instead, if your list contains the value 1, this item appears in the filtered list. Otherwise, the filtered list does not display any items.

WORKAROUND

To filter an item that contains an operator in your list, use the Custom AutoFilter dialog box. For example, to filter the item "'=1" in your list, use the following steps:

   1. Select your list on the worksheet.

   2. From the Data menu, choose Filter, and then choose AutoFilter.

   3. From the filter drop-down list, select (Custom...).

   4. From the list of comparison operators, select =. From the list of
      your list values, select the "'=1" item. Choose OK.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c.

REFERENCES

For more information about the Custom AutoFilter Dialog Box, choose the Search button in Help and type:

   AutoFilter


KBCategory: kbother
KBSubcategory:

Additional reference words: 5.00



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.