XL97: Copied and Pasted Dates Are Changed by 100 Years (179584)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q179584 SYMPTOMS
In Microsoft Excel 97 for Windows, if you copy a cell that contains a date,
and then paste the date into a cell in another workbook, the date may
unexpectedly change by 100 years. For example, when you paste the following
sample dates, the following dates are pasted instead.
Copied date Pasted date
-------------------------
3/31/1920 3/31/2020
3/31/2030 3/31/1930
CAUSE
This problem occurs if the following conditions are true:
- After you copy the date, you close the workbook that contains this
date.
-and-
- You then paste the date into another workbook.
-and-
- The copied date is less than or equal to 12/31/1929 or greater than
or equal to 1/1/2030.
-and-
- The copied date is formatted so that two-year digits are displayed, not
four.
WORKAROUND
To work around this problem, do not close the workbook from which you copied the
date until after you paste the date into the destination workbook.
If this problem has already occurred, you can manually retype the
incorrect dates. Or, if there are many incorrect dates, you can correct
them by following these steps:
- In an empty cell in the worksheet, enter the following number:
Then, select the cell and click Copy on the Edit menu.
- Select the cells that contain the incorrect dates.
- On the Edit menu, click Paste Special. Click Values and click one of
following option buttons.
Click To perform this action
--------------------------------------------
Add Shift date up by 100 years
Subtract Shift date down by 100 years
- Click OK.
The dates are shifted up or down by 100 years depending on the option
button that you clicked in step 3.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 8/9/2006 |
---|
Keywords: | kbbug KB179584 |
---|
|