+ Reply to Thread
Results 1 to 10 of 10

Documenting Static Real Time [Absolute Time] in a Cell

  1. #1
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Smile Documenting Static Real Time [Absolute Time] in a Cell

    I want a spreadsheet solution to entering the real time into a cell and then somehow making it immune to updates or calculations. Anyone out there have any ideas on this?
    Last edited by SDruley; 06-23-2011 at 10:31 PM.
    Turn Data into Information
    Turn Information into Knowledge
    Turn Knowledge into Direction
    Turn Direction into Leadership
    Turn Leadership into Results
    Stephen Druley

    It's not how quickly you think
    But how deeply you think
    The quality of thinking is measured
    by remoteness to conformance
    Stephen Druley

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Documenting Static Real Time in a Cell

    Hello,

    what do you mean by "making immune"?

    Ctrl-Shift ; <that's Ctrl-Shift-semicolon>

    enters the current time as an absolute value.

    cheers,

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Documenting Static Real Time in a Cell

    Hi SDruley,
    I agree with teylyn that using the shortcut keys will make it immune to formulas. You can also do a shortcut for the current date. As a matter of fact there are lots of shortcuts. See:
    http://office.microsoft.com/en-us/ex...010073848.aspx

    If you want to get fancy you can add Icons onto your ribbon. There is one called Current Time and another called Current Date. Find them in Options, Customize the Ribbon, All Commands.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Documenting Static Real Time in a Cell

    Thanks teylyn,

    How clever, learn something every day.
    There is one problem,however, I need this in a formula. Given the following example:

    __ A B
    1 10 =IF(A1<>"",TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW())),"")
    2 21 =IF(A2<>"",TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW())),"")
    3
    4

    So, once a number pops into cell A3, the current time is placed into B3. The problem is that these times are not, as you say, absolute times. What I am asking is what additional logic can we build into the formula that will populate the cell with an absolute time. I tried the Text function but this did not work.

    Steve
    Last edited by SDruley; 06-21-2011 at 09:29 PM.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Documenting Static Real Time [Absolute Time] in a Cell

    Steve,

    that will require VBA.

    For the record, you don't need

    TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))

    You can use just

    Now()

    and format as time only. Same difference.

    But to keep the cell from changing, you'll need to engage VBA. See here for an example. Just change the formatting string to your preferred time format.

    When you say "pops up" does that mean the number is not entered manually? Then you will need to use the Calculate event. Post an example for specific code.

    cheers,

  6. #6
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Documenting Static Real Time [Absolute Time] in a Cell

    teylyn,

    This is sooooo cool...a very nice code solution thanks

    Steve

  7. #7
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Documenting Static Real Time [Absolute Time] in a Cell

    Well, this problem is still not solved. I used code attached to the worksheet that would detect any changes in the worksheet that are in a specified range.
    If you open the attached file. please help me understand why nothing seems to trigger the "change"event macro.
    Attached Files Attached Files

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Documenting Static Real Time [Absolute Time] in a Cell

    Hi Steve,

    You have the line
    Please Login or Register  to view this content.
    Didn't you mean to make it
    Please Login or Register  to view this content.

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Documenting Static Real Time [Absolute Time] in a Cell

    Hi Steve,

    can you describe in words what you want to do?

    A Workshee_Change event will only fire for the worksheet that it is stored in. If you have a change event in sheet "Mike's Interface" then it will only do something if data is manually entered in that sheet.

    I'm afraid I'm not quite clear on what you want changed based on what trigger.

    Please explain.

  10. #10
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Smile Re: Documenting Static Real Time [Absolute Time] in a Cell

    Now I understand...
    I mistakenly thought that changes in the target worksheet (brought about by formulas referring to other worksheets) would trigger the change event. NOT

    Also I have moved away from this topic because I have found a more efficient Programmatic solution.

    Thanks everyone for your precious time

    Steve

+ 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