Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Custom Date Appears or Date Is Missing in AutoFilter List


View products that this article applies to.

This article was previously published under Q214323

↑ Back to the top


Symptoms

When you are viewing a filtered list in Excel (on the Data menu, point to Filter, and then click to select AutoFilter) you may experience the following problems:
  • The AutoFilter list contains one entry that represents two different dates. When you select the entry, both dates appear in the filtered list.

    -and-
  • When you click an item in the AutoFilter list, the selected item may be (Custom...) even though you did not previously create and select a Custom AutoFilter.

↑ Back to the top


Cause

These problems may occur when the following conditions are true:

  • You are using the AutoFilter to filter a list that contains dates.

    -and-
  • The dates have been formatted to use only two digits for years. For example, January 1, 1925 appears as 1/1/25.

    -and-
  • The list contains dates in more than one century: for example, dates in the 20th and 21st centuries.
The problem occurs because the items in the AutoFilter list are displayed with the format that is applied to the cells in the list. If two dates are formatted so that they appear to be the same date, only one entry appears in the AutoFilter list for the dates.

For an example of this problem, please see the "More Information" section.

↑ Back to the top


Workaround

To work around this problem, format the dates in your list so that they use four digits for years. If the dates appear differently, each date appears separately in the AutoFilter list when you click it.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Example

To see an example of the problem that is described in this article, follow these steps:

  1. In Microsoft Excel, create a new workbook. In Sheet1, enter the following values and formulas:
          A1: Date       B1: Year
          A2: 1/1/1925   B2: =YEAR(A2)
          A3: 1/1/2025   B3: =YEAR(A3)
          A4: 7/5/1998   B4: =YEAR(A4)
    					
  2. Select cell A1. On the Data menu, point to Filter, and then click to select AutoFilter.
  3. Click the arrow in cell A1.

    Note that the list contains the following items:
          (All)
          (Top 10...)
          (Custom...)
          1/1/25
          7/5/98
    					
  4. Click 1/1/25. Note that both the 1/1/1925 and 1/1/2025 dates appear in the filtered list.
  5. Click the arrow in cell A1; The (Custom...) item is selected in the list even though you have not previously selected it.
  6. Click 7/5/98, and then click the arrow again. Note that the 7/5/98 item is selected in the list.
  7. Click (All), and then select cells A2:A4.
  8. On the Format menu, click Cells, and then on the Number tab, click Custom in the Category list.
  9. In the Type box, type m/d/yyyy, and then click OK.
  10. Click the arrow in cell A1.

    Note that the dates appear separately in the list. When you select a date, only that date appears in the filtered list.

↑ Back to the top


Keywords: KB214323, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 214323
Revision : 6
Created on : 12/30/2005
Published on : 12/30/2005
Exists online : False
Views : 226