Microsoft Knowledge Base |
|
XL: Advanced Filter Deactivates AutoFilter |
|
|
Last reviewed: March 27, 1997
Article ID: Q114674 |
|
5.00 7.00 | 5.00
WINDOWS | MACINTOSHThe information in this article applies to:
SYMPTOMSIn Microsoft Excel, you cannot use the Advanced Filter and the AutoFilter together. If you use the Advanced Filter command to extract data from a list while the AutoFilter is active, the AutoFilter will be deactivated and all hidden rows will be restored before the Advanced Filter extracts data. Because the AutoFilter is deactivated before the data is extracted, you may not receive the results you expect.
WORKAROUNDAlthough you cannot use the Advanced Filter to extract data from a range that has an AutoFilter applied to it, you can add the conditions of the AutoFilter to the Advanced Filter criteria range. Applying this criteria will produce desired results (that is, you can use Advanced Filter criteria to filter out the data that you would have filtered out with the AutoFilter, and you can also use criteria to extract the data that you want to extract with the Advanced Filter). An example of how to do this is shown below.
To set up a sample list of data and a criteria range
To apply an AutoFilter
To Apply an Advanced Filter that extracts data based on the filter criteria you specified in the AutoFilterTo simulate the results of the AutoFilter with the Advanced Filter, you must use the same criteria in the Advanced Filter that you used in the AutoFilter. For example, if a field in the AutoFilter is set to show only the name "Smith," you must enter the name "Smith" into the appropriate cell below the corresponding field name in the Advanced Filter criteria range.
STATUSThis behavior is by design of Microsoft Excel.
MORE INFORMATIONIn Microsoft Excel, the Advanced Filter allows you to extract data from a list. When you do this, Microsoft Excel compares each record in your list to the values entered in your criteria range, and extracts only those records that match the criteria. However, if the AutoFilter is active when you use the Advanced Filter, Microsoft Excel will turn off the AutoFilter, unhiding any rows that were hidden by the AutoFilter.
REFERENCES"User's Guide," version 5.0, pages 393-407
|
|
KBCategory: kbusage
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |