Forum Discussion

Gervie's avatar
Gervie
Copper Contributor
Feb 09, 2021
Solved

Autocopy data from a cell to another cell based on current date

Hello, I have two tables in one sheet which I wanted to use for monitoring daily gain/ loss data.   The =TODAY() formula is in table 1 (cell B3), as well as the data from a specific cell (J17) t...
  • peteryac60's avatar
    peteryac60
    Feb 18, 2021

    Gervie 

    Hi

     

    Ok - I understand the problem now.

     

    Using TODAY() will never work as you already spotted when you move to the next day the previous days data is overwritten.

     

    The question I have for you is how important is for you to have an automated process to achieve this? It seems to me simpler for you to copy/paste the value in the appropriate cell in Table 2?

     

    What you want can be achieved via some VBA coding - but I think it is using a sledgehammer cracking a nut!

     

    I attach an example which includes some very crude code to copy cell J17 to the cell for Feb 18 (p27).

    If you clear the date in cell P27 and go to another sheet (sheet3) and then select sheet2 cell P27 will be populated with J17 data.

     

    At the moment this only works for cell P27. The code would need to be amended to find the appropriate cell each day (based on the current date) in order to  paste the data. 

    I think this is too complicated to achieve - a simple copy / paste each day is simpler.

    sorry!

     

    Peter

     

     

     

     

     

     

     

Resources