+ Reply to Thread
Results 1 to 12 of 12

Cell formula to record many values and date entered

Hybrid View

Stryda Cell formula to record many... 11-09-2011, 01:01 PM
pike Re: Cell formula to record... 11-10-2011, 04:02 AM
Stryda Re: Cell formula to record... 11-10-2011, 06:00 AM
Stryda Re: Cell formula to record... 11-10-2011, 09:16 PM
pike Re: Cell formula to record... 11-11-2011, 01:08 AM
pike Re: Cell formula to record... 11-11-2011, 01:19 AM
Stryda Re: Cell formula to record... 11-11-2011, 06:27 AM
pike Re: Cell formula to record... 11-11-2011, 06:56 PM
Stryda Re: Cell formula to record... 11-12-2011, 06:22 PM
pike Re: Cell formula to record... 11-12-2011, 07:41 PM
Stryda Re: Cell formula to record... 11-13-2011, 11:45 AM
pike Re: Cell formula to record... 11-13-2011, 04:28 PM
  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    leeds, england
    MS-Off Ver
    Excel 2003
    Posts
    35

    Cell formula to record many values and date entered

    Hey, I'm trying to make an excel spreadsheet for a university course, but I don't have much knowledge of excel, however I am quite computer literate. I'm trying to make it so that a student can input a value (eg 5) into a cell, and then have excel record that value along with the date the value was inputted on. But then it must work so that either the value is recorded in a drop down list, or on another spreadsheet, so that another student can come along on another day and input a new value and so on (I'm assuming macros can be used in excel, and could be used somehow to move the data to another spreadsheet). Also so that the other students can look at the values recorded over a certain length of time. Can anybody help me out with this? Please!
    Attached Files Attached Files
    Last edited by Stryda; 11-13-2011 at 06:39 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell formula to record many values and date entered

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    11-09-2011
    Location
    leeds, england
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Cell formula to record many values and date entered

    Ok I have attached a workheet, which hopefully should help you understand my thoughts!

  4. #4
    Registered User
    Join Date
    11-09-2011
    Location
    leeds, england
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Cell formula to record many values and date entered

    Ok, I've had a bit of a play around and I've attached a worksheet of it so far.
    My problem now is making the Enter button work on each of the 'Tank n' worksheets.
    The idea is that someone selects the tank number, is directed to the input sheet for that tank, inputs the required data and hits the 'Enter' button. The 'Enter' button then inputs this data into the corresponding database (ie values input into 'Tank 1' worksheet are recorded on a database held in 1 Database). Ideally the input cells want to be reset after the 'Enter' button is hit too. Also the databases, ie '1 Database' will continue to get larger and display each new set of inputted data.
    Many Thanks for anyone able to offer advice!
    Attached Files Attached Files

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell formula to record many values and date entered

    Hi Stryda,
    good stuff
    have you use the record macro feature?
    Its good to as it write code for the steps/procedures you eg copy from cell to another worksheet.

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell formula to record many values and date entered

    Hi Stryda,
    You can attach this macro to each button
    Sub ptest()
        With Worksheets("1 Database").Cells(Rows.Count, "C").End(xlUp)
            .Offset(1, 0) = Date
            .Offset(1, 1) = ActiveSheet.Range("E8").Value
            .Offset(1, 2) = ActiveSheet.Range("E13").Value
            .Offset(1, 3) = ActiveSheet.Range("E18").Value
        End With
        With ActiveSheet
            .Range("E8").ClearContents
            .Range("E13").ClearContents
            .Range("E18").ClearContents
        End With
    End Sub

  7. #7
    Registered User
    Join Date
    11-09-2011
    Location
    leeds, england
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Cell formula to record many values and date entered

    Thanks for that! With that though, it puts the last inputted data to the bottom of the database file, how would I change it to put the newest entry inputs to the top of the database? Also, if possible how do I create a bar chart displaying the inputs in '1 Database'? I'm pretty sure its simply a matter of selecting the range of the database, but I need it to update the chart when a new set of input data is entered. I've tried selecting the top left cell in the database and holding the shift and ctrl keys then the down and right keys but it doesnt account for and update with new inputs...Thanks again.

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell formula to record many values and date entered

    hi Stryda

    Ot add value to top of the list
    Sub ptest()
         With Worksheets("1 Database")
              .Rows("5:5").Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
              .Range("C5").Value = Date
              .Range("D5").Value = ActiveSheet.Range("E8").Value
              .Range("E5").Value = ActiveSheet.Range("E13").Value
              .Range("F5").Value = ActiveSheet.Range("E18").Value
        End With
        With ActiveSheet
            .Range("E8").ClearContents
            .Range("E13").ClearContents
            .Range("E18").ClearContents
        End With
    End Sub

  9. #9
    Registered User
    Join Date
    11-09-2011
    Location
    leeds, england
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Cell formula to record many values and date entered

    Works perfectly! Thank you so much for the help!!

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell formula to record many values and date entered

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  11. #11
    Registered User
    Join Date
    11-09-2011
    Location
    leeds, england
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Cell formula to record many values and date entered

    Umm...one last question if I may? How do I make a graph for the input values in the database sheet? So that it updates to when a new set of input values are entered? Sorry for all the questions!

  12. #12
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell formula to record many values and date entered

    Hi Stryda,
    Probably better to start a new thread in the Charts forum

+ 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