XL5: Computed Criteria with External Reference Doesn't Work

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

SYMPTOMS

In Microsoft Excel, if you use the Advanced Filter to filter records in a list, and you use an external reference in your criteria range, either none of the records in your list are filtered, or all of the records in the list are filtered.

CAUSE

This problem occurs even if your list and criteria range are contained on the same sheet. This behavior occurs when you use an external reference in the criteria range such as the following

   =Sheet1!A2=1

   -or-

   =Sheet1!Age=1

   -or-

   =BOOK1.XLS!Age=1

where Age is a column heading in your list.

WORKAROUNDS

To avoid this problem, and to ensure that the computed criteria is used correctly to filter your list, use the cell reference or field reference without the sheet name as in the following examples:

   =A2=1

   -or-

   =Age=1

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 version 5.0c for Windows.

REFERENCES

For more information about Setting Up A Criteria Range, choose the Search button in Help and type:

   computed criteria


KBCategory: kbother
KBSubcategory: xlwin

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.