XL: How Microsoft Excel Works with Two-Digit Year NumbersLast reviewed: March 19, 1998Article ID: Q164406 |
The information in this article applies to:
SUMMARYWhen you type a date using a two-digit year number (for example, 98) in Microsoft Excel, Microsoft Excel uses specific rules to determine which century to use for the date. This article explains how different versions of Microsoft Excel determine the century year.
MORE INFORMATIONWhen you type a date in a cell, you may want to omit the century digits from the year. If you do this, Microsoft Excel automatically determines the century to use for the date. For example, if you type "7/5/98" (without the quotation marks), Microsoft Excel automatically uses the year 1998 and changes the date to 7/5/1998 in the formula bar. The following sections explain the rules that are used by different versions of Microsoft Excel.
Microsoft Excel 97 for Windows and Excel 98 Macintosh EditionExcel 97 and Excel 98 Macintosh Edition determine the century year by using the following rules:
Microsoft Excel versions 3.x, 4.x, 5.x, 7.x
Microsoft Excel 2.x
Differences in BehaviorIn Excel 97 and Excel 98 Macintosh Edition, the two-digit "boundary" year for the 21st century is ten years later than the boundary year in earlier versions of Microsoft Excel. This change makes it more convenient to use two-digit year numbers, but it causes two-digit year dates from 20 to 29 to work differently in Excel 97 and Excel 98 Macintosh Edition. For example, if you type "11/17/25" (without quotation marks) in Microsoft Excel 97 or Excel 98 Macintosh Edition, the date appears as 11/17/2025; in earlier versions of Microsoft Excel, the date appears as 11/17/1925. Note that Microsoft Excel 2.x is the exception to this rule. In Microsoft Excel 2.x, there is no two-digit boundary year; all two-digit years are assumed to be in the 20th century. If dates appear to be using the incorrect century, check the dates in the formula bar, or format the dates with the four-digit year format.
|
Additional query words: 1919 1920 1929 1930 2019 2020 2029 2030 XL98 XL97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |