XL: Dates in Unexpected Order in AutoFilter Drop-down ListLast reviewed: March 27, 1997Article ID: Q106007 |
5.00 5.00c 7.00 7.00a | 5.00 5.00a
WINDOWS
kbusage
The information in this article applies to:
SUMMARYIn Microsoft Excel, when you use the AutoFilter command, the order in which dates will appear in the drop-down list depends on how they were originally formatted. Dates will appear in either of the following orders
Mixing number formats may cause the drop-down list to have no discernible order. For this reason, it is recommended that you use the same number format for all dates in the same column when using the AutoFilter command.
MORE INFORMATION
ExampleTo create an example that will demonstrate how various dates are sorted depending on how they are formatted, do the following:
The following table contains some of the possible date formats and lists the order in which dates formatted this way appear.
This format Displays the dates as In this order --------------------------------------------------------------- m/d/yy 1/1/94, 2/1/94, 3/1/94 Numerical d-mmm-yy 1-Jan-94, 1-Feb-94, 1-Mar-94 Numerical d-mmm 1-Jan, 1-Feb, 1-Mar Numerical mmm-yy Jan-94, Feb-94, Mar-94 Numerical mmmm January, February, March Alphabetical mmm Jan, Feb, Mar Alphabetical yyyy mmmm 1994 January, 1994 February Alphabetical yyyy-mmmm 1994-January, 1994-February Alphabetical yy mmmm 94 January, 94 February, Alphabetical yy-mmmm 94-January, 94-February, Alphabetical mm 01, 02, 03, 04 Numerical m/d/yyyy 1/1/1994, 2/1/1994, 3/1/1994 Numerical d-mmmm 1-January, 1-February, 1-March Numerical mmmm yyyy January 1994, February 1994 Numerical d mmmm yyyy 1 January 1994, 1 February 1994 Numerical mmmm d, yyyy January 1, 1994 Numerical mmmm dd, yyyy January 01, 1994 Numerical @ (text 1/1/94, 2/1/94, 3/1/94 Numerical format, applied to cells before dates are entered) 'date 1/1/94, 2/1/94, 3/1/94 Numerical (apostrophe entered before date: '1/1/94)Dates that are entered as text (for example, Jan, Feb, Mar, and so on), will always appear in alphabetical order.
REFERENCES"User's Guide," version 5.0, Chapter 21
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |