+ Reply to Thread
Results 1 to 7 of 7

Adding One Day to Date When Copying Date to Another Excel Worksheet

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    Farifax, VA
    MS-Off Ver
    Windows 7
    Posts
    36

    Adding One Day to Date When Copying Date to Another Excel Worksheet

    I'm copying dates from one Excel file to another. Both are in Excels are in the same version of Excel - 2007. When I copy the date to the other file, one day is added. For example, 12/4/2014 becomes 12/5/2014. Why is this happening? How do I correct it? Thanks for any help.
    Last edited by chcalissie; 11-19-2014 at 01:24 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding One Day to Date When Copying Date to Another Excel Worksheet

    Is it a simple copy and paste of a number (aka date) or is it of a formula? Do either of the sheets have macros?
    When you click on the two cells (old and new), what do you see in the formula bar (white long text box above the columns)?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-21-2014
    Location
    Farifax, VA
    MS-Off Ver
    Windows 7
    Posts
    36

    Re: Adding One Day to Date When Copying Date to Another Excel Worksheet

    It's just a copy and a paste from one file to another. Both are set as date fields. There's a dropdown arrow in the heading for the date column, but in the formula bar they both show mm/d/yyyy (e.g., 12/4/2014). I check the value of the date field from which I'm coping by looking at it as if it were a General field and it showed the value (e.g., 41977 for 12/4/2014). In the cell into which I'm copying the number it shows as 12/5/2014. I think I've run into this before, but I thought it was because the files were different versions of Excel. That's not the case this time.

    Actually, it's adding years, too. 12/4/2014 become 12/5/2018. But when I put them both in general format, they show 41977. When I enter 12/4/14 and reformat to general, it shows 40515. This is getting stranger.
    Last edited by chcalissie; 11-19-2014 at 12:59 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Adding One Day to Date When Copying Date to Another Excel Worksheet

    The first workbook is using the 1900 date system, the second is using the 1904 system. Change the latter.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Adding One Day to Date When Copying Date to Another Excel Worksheet

    Check the Advanced options and make sure the target sheet isn't set to use the 1904 date system.
    Remember what the dormouse said
    Feed your head

  6. #6
    Registered User
    Join Date
    08-21-2014
    Location
    Farifax, VA
    MS-Off Ver
    Windows 7
    Posts
    36

    Re: Adding One Day to Date When Copying Date to Another Excel Worksheet

    That was it!! Thanks.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Adding One Day to Date When Copying Date to Another Excel Worksheet

    Quote Originally Posted by shg View Post
    The first workbook is using the 1900 date system, the second is using the 1904 system. Change the latter.
    Great catch, shg! Something else to stay alert for.....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Date wise copying rows in different worksheet
    By hasanarc in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-12-2013, 01:41 PM
  2. [SOLVED] Copying data from one worksheet to another based on date
    By Siimo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-09-2013, 06:53 PM
  3. Copying row (within specified range of date) to another worksheet
    By dinosaur1993 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2013, 05:32 AM
  4. [SOLVED] Copying between workbooks, then adding a date into cell
    By jayinthe813 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2012, 09:28 AM
  5. Copying rows to new worksheet if within date
    By mark_1903 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2009, 06:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1