ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copying Dates (https://www.excelbanter.com/excel-discussion-misc-queries/97440-copying-dates.html)

nitsa

Copying Dates
 
When I copy a date from one file into another, the date value changes. for
example when I copy 4/1/2006 and paste it into another sheet, I get 3/1/2002.



--
dani

David Biddulph

Copying Dates
 
"nitsa" wrote in message
...
When I copy a date from one file into another, the date value changes. for
example when I copy 4/1/2006 and paste it into another sheet, I get
3/1/2002.


Your first file is using the 1904 date system, the other isn't.

Tools/ Options/ Calculation.
--
David Biddulph



Dave Peterson

Copying Dates
 
One workbook was using a base year of 1900 and the other was using 1904.
(tools|options|calculation tab|1904 date system)

One way to add those four years back is to find an empty cell, put 1462 into
that cell.

Copy that cell.

Select your range that contains the dates. Edit|PasteSpecial|click Add (in the
operation box).

You may have to reformat the cell as a date (mine turned to a 5 digit number).
But it should work.

You may want to do it against a copy...just in case.

(I'm not sure which one you'll fix. You may want to edit|pastespecial|click
subtract.)

Most windows users use 1900 as the base date. Mac users (mostly??) use 1904 as
the base date.

nitsa wrote:

When I copy a date from one file into another, the date value changes. for
example when I copy 4/1/2006 and paste it into another sheet, I get 3/1/2002.

--
dani


--

Dave Peterson


All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com