Article ID: 214327 - Last Review: September 25, 2003 - Revision: 3.0 XL2000: Wrong Date Returned When You Enter Month and DigitsThis article was previously published under Q214327 SYMPTOMS
In Microsoft Excel, if you enter a month name that is spelled out or
abbreviated and is followed by a space and one or two digits, the date
that appears in the cell may be different from the date you expect.
For example, when you enter the following dates, Excel displays the following:
Date entered Date that appears
------------------------------------
Dec 1 December 1, <year>*
Dec 31 December 31, <year>*
Dec 32 December 1, 1932
December 99 December 1, 1999
=YEAR("Dec 2") <year>*
=YEAR("Dec 33") 1933
* where <year> is the current year in four-digit format.
CAUSE
When you enter a month and a one or two digit number, Microsoft Excel
assumes that the digits represent the day of the month and that the date
is in the current year. For example, "Dec 31" translates into December 31 in the current year.
However, if the digits exceed the number of days in the month, Microsoft Excel converts the digits to a year and assumes that the date is on the first of the month. For example, "Dec 32" translates into December 1, 1932. NOTE: This same behavior applies when you enter text strings to represent dates into date and time worksheet functions. RESOLUTION
To prevent problems from occurring when you enter dates, use the following
guidelines:
MORE INFORMATIONFor additional information about how Microsoft Excel works with two-digit years, click the article number below
to view the article in the Microsoft Knowledge Base:
214391
(http://support.microsoft.com/kb/214391/EN-US/
)
XL2000: How Microsoft Excel Works with Two-Digit Year Numbers
| Article Translations
|
Back to the top
