+ Reply to Thread
Results 1 to 9 of 9

Running Timer When Clicking a Button

  1. #1
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Running Timer When Clicking a Button

    Hi Everyone,

    I came across a problem with the tool i'm creating. This is like a time in motion tool where if the person clicks on start, it shows the timestamp, total duration, etc. What I want is a timer between clicking start and stop. I've attached my file for your reference. The timer I placed in J8 shows the running time = now, what I need is a timer that restarts, and gets back to 0 seconds.

    Password is markusvirus

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Running Timer When Clicking a Button

    Neat. Didn't know you could do that. Try using a 'RUNNING_COUNT' that starts at zero and increments by 1 second - then instead of calculating 'NOW()' in the worksheet - you can just assign the value of running count to that cell.

    Also - 86400 is the number of seconds in a day. So, divide by 86400 turns the running count into a decimal timestamp.

    Try this:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 11-03-2015 at 10:39 AM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Running Timer When Clicking a Button

    Exactly what i needed! Thank you so much!!!

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Running Timer When Clicking a Button

    Also - you could leave your code alone and just replace your formula in J8 with this:

    Please Login or Register  to view this content.

    Just another idea. :D
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Running Timer When Clicking a Button

    hi, i have a follow up inquiry about the file i have. I included a drop down list for Call types, which is being counted as well. What I'm trying to achieve is to average the duration per number of entries based on call type. Can you help me with this?
    Attached Files Attached Files

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Running Timer When Clicking a Button

    See attached.

    I would just extend the table (see attached) and use an AverageIF() formula - Copy this formula to K21, then copy/paste down the table as needed for the averages.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Running Timer When Clicking a Button

    thank you so much @GeneralDisarray, one more thing, is it possible for all entries that instead of them being placed on the next row, the previous entries would go down so the current item would always be on top?

  8. #8
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Running Timer When Clicking a Button

    hi!

    thank you so much @GeneralDisarray, one more thing, is it possible for all entries that instead of them being placed on the next row, the previous entries would go down so the current item would always be on top?

  9. #9
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Running Timer When Clicking a Button

    pls disregard
    Attached Files Attached Files

+ 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. running timer in excel with start, pause and end button
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-23-2021, 04:36 AM
  2. Create running stopwatch/timer with 1 button (start/stop). No reset button.
    By leeroy2612 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2021, 12:59 AM
  3. timer stops running sometimes
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2015, 02:38 AM
  4. Multiple Timer Running
    By Lightnessg1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2013, 02:29 PM
  5. Running a macro when clicking on a button in excel
    By mitts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2011, 12:55 PM
  6. Create a running timer
    By ajxxx in forum Excel General
    Replies: 9
    Last Post: 07-23-2009, 08:48 AM
  7. Replies: 1
    Last Post: 03-10-2006, 08:10 AM

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