XL: Custom AutoFilter Won't Filter Numbers Formatted as TextLast reviewed: June 3, 1997Article ID: Q119257 |
5.00 5.00c 7.00
WINDOWS
kbother
The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you use the Custom AutoFilter dialog box to filter number values that have been entered as text, and you select the <> comparison operator, all of the numbers are displayed, even if they are equal to the comparison value.
CAUSEThe <> comparison operator is designed to filter records that are not equal to the value that you use with the comparison criteria. However, this criteria does not work to filter number values that are formatted as text. This behavior affects numbers that meet the following conditions:
WORKAROUNDTo work around this problem, use one of the following methods:
Method 1Enter the numbers first, format the numbers as text, and then filter the numbers. NOTE: Use Method 3 if the data you want to filter contains a zero value that is formatted as text, such as "00."
Method 2If you format the cells as text prior to entering the numbers, or if you import data from another program and the numbers are formatted as text, use the following steps to convert the text format to the number format:
Method 3To filter records that are not equal to a number, use the <> comparison operator and set the comparison criteria to the number followed by the * or ?. For example, to filter records that are not equal to the value 43, use the comparison operator <> and the comparison criteria 43*. The asterisk (*) wildcard character represents any series of characters, while the question mark (?) represents any single character. To use a wildcard character, follow these steps:
MORE INFORMATIONWhen you filter zero values that are formatted as text, use the question mark (?) wildcard to filter a specific zero value. For example, to search for "00," type "0?" (without the quotation marks) in the text box. To search for "000," type "0??" (without the quotation marks) in the text box. Use the asterisk (*) wildcard to filter all other zero values except for "0." For example, to search for "00," "000," "0000," and so on, type "0*" (without the quotation marks) in the text box. To exclude all zero values including "0", use the following steps:
REFERENCESFor more information about the Custom AutoFilter Dialog Box, choose the Search button in Help and type:
Custom AutoFilter dialog box |
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |