XL: How Microsoft Excel Works with Two-Digit Year Numbers

ID: Q164406


The information in this article applies to:


SUMMARY

When you type a date using a two-digit year number (for example, 98), 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 INFORMATION

When 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 Edition

Excel 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 Behavior

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


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: 1919 1920 1929 1930 2019 2020 2029 2030 XL98 XL97 XL7 XL5 XL4 XL3 XL2 3.0 2.2 2.1d 2.1c 2.1 2.0 y2k year2000 year 2000


Keywords          : kb2000 xlformula 
Version           : MACINTOSH:3.0,4.0,5.0,98;WINDOWS:2.0,3.0,4.0,5.0,7.0,97
Platform          : MACINTOSH OS/2 WINDOWS 
Issue type        : kbinfo 

Last Reviewed: April 10, 1999