XL2000: Date Values Earlier Than 1900 Appear As TextID: Q214068
|
Microsoft Excel calculates date serial numbers starting with the year 1900
and later. When you use a date that is earlier than the year 1900, the
date value will appear as a text string. This same behavior occurs in Microsoft Excel for the Macintosh when you use dates earlier than 1904.
One way to determine if a date is formatted as a text string is by looking
at the alignment of the value in the cell:
If a date is formatted as a text value, you will not be able to use it in
certain calculations. For example, you could not easily find out the
number of years between two dates if one of the dates is earlier than the year 1900.
The following example describes a formula to find the number of years
between two dates when one of the dates is prior to the year 1900.
=IF(ISTEXT(A1),YEAR(TODAY())-RIGHT(A1,4),(TODAY()-A1)/365)If the current year is 1999, the formula above would return 134, indicating that the difference in years between the two dates is 134 years.
Additional query words: off2000 XL2000
Keywords : kbdta xlformat xlformula
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: August 2, 1999