+ Reply to Thread
Results 1 to 3 of 3

Copy dates to cells

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    Sioux City, Iowa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Unhappy Copy dates to cells

    I have a list of customers that use different code dates. Some use a MM/DD/YY format while others use a Mmm/dd/YY while others use a mm/dd/yyyy numeric and there are still more variations. I am trying to build an array that looks up these customers with their products and have their code date driven from a common date provided by the user. This will give a correct code date for a production schedule.

    The problem I face is Excel doent like to copy dates to other cells. If the date is formated as Jun1809 the lookup function displays 39982. There are times when I need to concantenate "Best by" and the date. I get "Best by 39982" as a result.

    Is there a way around this? Through a function or visual basic macro?

    Thanks,
    Kurt

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624
    Given: A1 = 39982,
    Then:
    YEAR(A1) = 2009
    MONTH(A1) = 6
    DAY(A1) = 18
    OR,
    DATE(YEAR(A1),MONTH(A1),DAY(A1)) --> 06/18/09
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    12-29-2008
    Location
    Sioux City, Iowa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copy dates to cells

    Awesome....Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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