Article ID: 180158
Article Last Modified on 12/2/2004
=DATE(1899,1,2)the formula returns 1/2/3799 and the expected result is 1/2/1899.
Earlier versions
Year Microsoft Excel 97 of Microsoft Excel
-----------------------------------------------------------------------
0 through 178 Adds 1900, producing dates Adds 1900, producing
from 1900 through 2078 dates from 1900 through
2078
179 through 1899 Adds 1900, producing dates Not accepted; function
from 2079 through 3799 returns #NUM! error
value
1900 through 2078 Not changed; dates are Not changed; dates are
from 1900 through 2078 from 1900 through 2078
2079 through 9999 Not changed; dates are Not accepted; function
from 2079 through 9999 returns #NUM! error
value
10,000 or later Not accepted; function Not accepted; function
returns #NUM! error value returns #NUM! error
value
Note that if a workbook is using the 1904 date system and if the DATE
function returns a date from 1900 through 1903, the function returns a
#NUM! error value. For more information, please see the following article
in the Microsoft Knowledge Base:
175753 XL: DATE Function May Return #NUM! Error When Year Is 0-3
=DATE(98,7,5)Because the year argument (98) is less than 1900, Microsoft Excel adds 1900 to the argument (1900 + 98 = 1998) and returns the following date:
7/5/1998
Additional query words: XL97 y2k year2000 1900 1901 1902 1903 XL
Keywords: kbbug kbpending KB180158