+ Reply to Thread
Results 1 to 11 of 11

"Timestamp"

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Elkhart, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    "Timestamp"

    I'm trying to figure out a code to be able to put an "X" in a group of cells and have a timestamp display in in another cell. Is this possible? I've attached the document that I'm working with so you can see what I'm doing.
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: "Timestamp"

    You can try this formula in the Timestamp column:
    Please Login or Register  to view this content.
    Timestamp always reflects the time the last "X" was entered.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Elkhart, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: "Timestamp"

    It worked perfectly!!!! Thank you very much!

  4. #4
    Registered User
    Join Date
    10-05-2012
    Location
    Elkhart, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: "Timestamp"

    Ok, The formula did what I need it to, the only problem is that it updates each timestamp. How do I make it so that the only change is in the row that is being modified?
    Last edited by Js1976; 10-05-2012 at 12:11 PM.

  5. #5
    Registered User
    Join Date
    10-05-2012
    Location
    Elkhart, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: "Timestamp"

    Ok, the program worked for what I asked for. Thank you for that; but now, it's updating all the timestamps and I need it to update only the row that is being modified.

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: "Timestamp"

    The formula should only set the timestamp in one row, because it counts the number of x's in the same row the formula is in.
    If it apparently is effected by other rows you should check if references only the current row.
    E.g countiff(B10:I11,"x") will count the number of x's in row 10 and 11. Maybe something like this happens.
    You may also upload your sheet (or a relevant part of it) so I can have a look at it.

  7. #7
    Registered User
    Join Date
    10-05-2012
    Location
    Elkhart, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: "Timestamp"

    Digital Logs.xlsx

    Here is the log sheet with the new formula entered.

  8. #8
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: "Timestamp"

    OK. The problem is in the NOW() function. That's updated each time the sheet is recalculated.
    Sorry for overlooking that, but can be solved pretty easily. I'm going in ameeting now. Get back to you asap.

  9. #9
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: "Timestamp"

    Here's the altered sheet.
    Discarded the formula and replaced with a small piece of code in de worksheet_change() section.
    You can access that code thru the VBE.

    The code handles changes in the cells where you put the x's. If you put in an x in some cell it puts a timestamp in the corresponding timestamp column.
    If you delete an x it will remove the timestamp only when no other x's are remaining.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-05-2012
    Location
    Elkhart, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: "Timestamp"

    Thank you SOO MUCH! It works perfectly!

  11. #11
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: "Timestamp"

    Glad I could help.
    If you need any further assistance pls let me know.
    If your problem is solved don't forget to mark this thread as [SOLVED].
    If you appreciate my help pls add to me rep by clicking the * below my post. 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