+ Reply to Thread
Results 1 to 7 of 7

Recording data using date

  1. #1
    Registered User
    Join Date
    04-06-2018
    Location
    Kenilworth, England
    MS-Off Ver
    Office 2013
    Posts
    16

    Recording data using date

    Hi,

    I was wondering if it was possible to have excel record data on a particular date.

    I have a situation where I want a spreadsheet to be used continuously throughout the year but then every month or two to take a snapshot of all the data to be referenced later and be used to show a progression.

    E.G.
    If I was recording distance travelled throughout the year, the numbers would continue to rise throughout. I would like the spreadsheet to record the distance travelled in a separate sheet at the end of January, February and so on automatically whilst allowing me to continue to work on/with the cumulative data.

    Thanks

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Recording data using date

    Use the Workbook_BeforeClose event. Check the tracking sheet for the current date: if it's not there add the date and tracking info, else just close. ... ?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-06-2018
    Location
    Kenilworth, England
    MS-Off Ver
    Office 2013
    Posts
    16

    Re: Recording data using date

    Thanks but I'm not really sure what that means. I'm teaching myself as I go along to be honest.

    I found this Visual Basic code which took the data from the active cell and put it on a cell in another sheet.

    Please Login or Register  to view this content.
    Could this be adapted to take data from a number of specific cells and place the data in specific cells on another sheet? I have no idea where to start with it but I would be happy to set up a series of buttons to copy the data rather than using the date.

    Thanks
    Last edited by alansidman; 04-08-2018 at 08:11 PM. Reason: code tags added

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Recording data using date

    Rather than a macro, you can use summary table with formulas for monthly totals. In the sample file, I used named dynamic ranges

    amount =Sheet1!$B$2:INDEX(Sheet1!$B:$B,COUNTA(Sheet1!$A:$A))
    date =Sheet1!$A$2:INDEX(Sheet1!$A:$A,COUNTA(Sheet1!$A:$A))


    that expand as data is appended to the list and a summary table per month using:
    Please Login or Register  to view this content.
    to calculate monthly totals.
    Attached Files Attached Files

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Recording data using date

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    04-06-2018
    Location
    Kenilworth, England
    MS-Off Ver
    Office 2013
    Posts
    16

    Re: Recording data using date

    Sorry.

    New to this

  7. #7
    Registered User
    Join Date
    04-06-2018
    Location
    Kenilworth, England
    MS-Off Ver
    Office 2013
    Posts
    16

    Re: Recording data using date

    Thanks for this but what I need is a little more complicated.

    What I'm using it for is this...

    I am setting up an assessment system for my school. When children meet certain objectives they are given a score and this leads to a grade. As the year progresses the score will increase and the grades will change. What I am looking for is a way to take a snapshot of the grades for the entire class (in a variety of subjects) at various points throughout the year. I would then be able to see the progress the children have made term on term throughout the year.
    The 'grade' cell would need to continue to be used througout the year and the value copied into specific cells in another sheet. I originally hoped excel could automatically copy these cells on or after a particular date but failing this, was happy to create a button to copy all the necessary cells in one go.

    Hope I have made this clear. I'm not finding it easy to explain.

+ 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. Recording rows of data based on time/date.
    By Swulvi in forum Excel General
    Replies: 1
    Last Post: 05-02-2016, 04:49 PM
  2. Recording the date of stock out
    By nooredein in forum Excel General
    Replies: 8
    Last Post: 01-08-2016, 04:04 PM
  3. [SOLVED] Recording date
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2014, 06:05 PM
  4. Recording Data in Summary sheet based on date and site.
    By ddthomps in forum Excel General
    Replies: 0
    Last Post: 07-18-2012, 12:31 PM
  5. VB Code For Recording Date When Entering Data
    By zirconium in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2011, 02:26 PM
  6. Date recording on a cell
    By Mikey B in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2006, 11:35 AM
  7. recording a data entry date
    By Rusty 1i in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2006, 01:25 PM

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