XL: How Microsoft Excel Works with Two-Digit Year NumbersID: Q164406
|
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.
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.
Two-digit Century used
year typed
---------------------------------
00-29 21st (year 2000)
30-99 20th (year 1900)
For example, when you type the following dates, Microsoft Excel uses
the following dates.
Date typed Date used
-------------------------
7/4/00 7/4/2000
1/1/10 1/1/2010
12/31/29 12/31/2029
1/1/30 1/1/1930
7/5/98 7/5/1998
12/31/99 12/31/1999
Two-digit Century used
year typed
---------------------------------
00-19 21st (year 2000)
20-99 20th (year 1900)
For example, when you type the following dates, Microsoft Excel uses
the following dates.
Date typed Date used
-------------------------
7/4/00 7/4/2000
1/1/10 1/1/2010
12/31/19 12/31/2019
1/1/20 1/1/1920
7/5/98 7/5/1998
12/31/99 12/31/1999
Date typed Date used
-------------------------
7/4/00 7/4/1900
1/1/10 1/1/1910
12/31/19 12/31/1919
1/1/20 1/1/1920
7/5/98 7/5/1998
12/31/99 12/31/1999
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