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

ID: Q183815

The information in this article applies to:

SYMPTOMS

In the versions of Microsoft Excel listed at the beginning of this article, the following problems may occur when you click an AutoFilter arrow to display an AutoFilter list:

CAUSE

These problems may occur when the following conditions are true:

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.

NOTE: The problem in which "(Custom...)" is selected does not occur in Microsoft Excel versions 5.0 and 7.0.

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

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.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

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
   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. Select 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.

   If you are using Microsoft Excel 97, note that the "(Custom...)" item is
   selected in the list even though you have not previously selected it.

6. Click 7/5/98. Then, click the arrow again.

   Note that the 7/5/98 item is selected in the list.

7. Click "(All)".

8. Select cells A2:A4. On the Format menu, click Cells. Click the Number

   tab. In the Category list, click Custom. In the Type box, type
   "m/d/yyyy" without quotation marks. Click OK.

9. Click the arrow in cell A1.

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

REFERENCES

For more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site:

   http://www.microsoft.com/technet/topics/year2k/default.htm

Additional query words: XL97 XL5 XL7 5.0 7.0 year2000 y2k year 2000
Keywords          : kb2000 xllist 
Version           : MACINTOSH:5.0,5.0a; WINDOWS:5.0,5.0c,7.0,7.0a,97
Platform          : MACINTOSH WINDOWS
Issue type        : kbprb

Last Reviewed: January 8, 1999