+ Reply to Thread
Results 1 to 3 of 3

Copy Values in one Columns on every beginning of the month to another column

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Copy Values in one Columns on every beginning of the month to another column

    Hi All ,

    Any suggestions is appreciated

    I have a worksheet that captures data in table cumulatively daily (column YTD)


    CU YTD Jan Feb Mar Apr May June July Aug
    A 84% 0% 94% 80% 80% 84%
    B 100% 63% 70% 67% 100% 100%
    C 84% 89% 84% 91% 91% 84%
    D 100% 13% 22% 100% 100% 100%
    E 10% 0% 0% 27%
    F 45% 100% 60% 0% 45%
    G 100% 100% 100% 100% 100% 100%
    H 100% 50% 50% 100% 100% 100%
    Total 78% 74% 75% 89% 86% 78%

    I need advise how i can copy and paste the YTD data at 1st of every mth into the respective monthly column
    Sample above YTD data was taken at 1st May 2013 , and i copy it to Column May
    When system date is 1st June 2013, the values in YTD will be copy and paste to column June
    this goes on for 1st August , 1st September ...

    Is there a way for formulas to get the results or should it be a macro ?
    I am clueless here.

    Thanks in advance to all .

    BR ,
    waiHar

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Copy Values in one Columns on every beginning of the month to another column

    You will have to do it using code because formulas are dynamic and will always change to reflect current data.

    See if this will get you started.
    This code is intended to go into the Workbook Module name "ThisWorkbook" and it used the Workbook_Open event.
    The current date is tested to see if it is the first day of the month and, if so, a message box is displayed prompting the use to transfer the values now.

    You can test the code by changing the 1 on this line to the current day, save & close the workbook, then re-open it.
    ALWAYS test code on a back up copy of the workbook

    Please Login or Register  to view this content.
    Code for the Worksheet Module
    Please Login or Register  to view this content.
    You can use this code to manually transfer the values. If you don't open the workbook on the first day, the above code will not execute until the next month (assuming the file is opened on the 1st day).

    This code goes into a standard module.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Copy Values in one Columns on every beginning of the month to another column

    Hi Palmetto ,

    Thanks for the advise.
    Q1 . If i do not open the file on 1st of the month , as 1st might not be always as working day for my team mates to open the file.
    Anyway to allow the data auto transfer on 1st of the mth.

    Q2. I have one Data (Summary worksheet) , column YTD is cummulative updated.
    every beginning of mth starting July onwards , the monthly data is copied to different column. based on country A,B ... to H


    CU YTD Jan Feb Mar Apr May Jun Jul Aug
    A 84% 0% 94% 80% 80% 84%
    B 100% 63% 70% 67% 100% 100%
    C 84% 89% 84% 91% 91% 84%
    D 100% 13% 22% 100% 100% 100%
    E 10% 0% 0% %
    F 45% 100% 60% 0% 45%
    G 100% 100% 100% 100% 100% 100%
    H 100% 50% 50% 100% 100% 100%
    Total 78% 74% 75% 89% 86% 78%

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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