XL2000: Copied and Pasted Dates Are Changed by 100 Years (211640)
The information in this article applies to:
This article was previously published under Q211640 SYMPTOMS
In Microsoft Excel, 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
correct 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.
REFERENCESFor additional information about how Microsoft Excel handles two-digit years, click the article number below
to view the article in the Microsoft Knowledge Base:
214391 XL2000: How Microsoft Excel Works with Two-Digit Year Numbers
Modification Type: | Major | Last Reviewed: | 10/6/2003 |
---|
Keywords: | kbprb KB211640 |
---|
|