Excel: Date Values Earlier Than 1900 Appear As TextID: Q104226
|
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 example below 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)
"Function Reference," version 4.0, pages 225-228, 468, 435, 363
"Function Reference," version 3.0, page 125-127, 251, 237, 200
Additional query words: 2.x 4.00a
Keywords :
Version : WINDOWS:3.0,4.0,5.0,7.0,97; MACINTOSH:3.0,4.0,5.0
Platform : MACINTOSH WINDOWS
Issue type :
Last Reviewed: April 6, 1999