XL2000: DATE Function May Return #NUM! Error When Year Is 0-3 (214365)
The information in this article applies to:
This article was previously published under Q214365 SYMPTOMS
The DATE function may return a #NUM! error even though the year, month,
and day arguments are all valid. For example, the following formula
=DATE(1,7,5)
may return a #NUM! error.
CAUSE
This problem occurs when the following conditions are true:
- The workbook in which you are using the function uses the 1904 Date
System.
-and-
- The year argument is one of the following values:
0 00 1900
1 01 1901
2 02 1902
3 03 1903
Because the 1904 Date System is the default date system in Microsoft Excel
for the Macintosh, this problem is more likely to occur in workbooks that
were created on the Macintosh.
This behavior is by design of Microsoft Excel.
WORKAROUND
To work around this problem, use a full four-digit year argument that is
greater than or equal to 1904. For example, instead of the following
formula
=DATE(1,7,5)
use the following formula:
=DATE(2001,7,5)
By specifying a valid full four-digit year, you can prevent the DATE
function from returning a #NUM! error value.
Modification Type: | Major | Last Reviewed: | 9/25/2003 |
---|
Keywords: | kbprb KB214365 |
---|
|