How To Create a Stop Watch in Google Sheets

Sdílet
Vložit
  • čas přidán 9. 04. 2023
  • Create a Stop Watch in a Google Sheet. Start and stop time stamps, add up duration once you click. This is a sweet Google Sheet to make and you can see it step-by-step.
    🔔 Subscribe for more free Google Sheets tips: czcams.com/users/bettersheets?...
    🕰️ Time Saving Tips, Tricks and Techniques
    bettersheets.co/topics
    🤖 Add AI to Your Sheets
    bettersheets.co/courses/adven...
    🚀 Tools and Templates For YOU:
    Generate Google Sheets Formulas:
    bettersheets.co/google-sheets...
    100 Free Business Ideas - Lead Magnet, product, and business ideas you can make in a Google Sheet to validate your business ideas.
    Free at bettersheets.co/tools/100-bus...
    Tiny Sheets - Easily delete unnecessary rows and columns
    Free Add-on: tinysheets.bettersheets.co/
    Sheet Styles - Change your spreadsheets style to match your mood.
    Get it now: sheet-styles.bettersheets.co/
    Atomic Sheets - 100 Spreadsheet elements you can add to your spreadsheets immediately.
    30 free: atomicsheets.com/
    Generate REGEXMATCH formulas to clean data
    bettersheets.co/regexmatcher
    Generate SPARKLINE formulas to make cool charts inside of cells.
    bettersheets.co/sparkliner
    😎 Most Popular Tips and Tricks
    Extract Urls from Google Sheets
    blog.bettersheets.co/extract-...
    ⚙️Automate Your Sheets:
    Spreadsheet Automation 101, get started making your sheets work for you, while you sleep
    Start Automating: bettersheets.co/courses/sprea...
    Learn to Code in Sheets - A quick course to get you started on Apps Script. Coding in sheets makes automating your sheets so much easier!
    Learn here: www.udemy.com/course/learn-to...
    📺Step-by-Step Tutorials
    Find EVERYTHING you need to make your spreadsheets better on my website BetterSheets.co
    Disclaimer: Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost to you.

Komentáře • 37

  • @emilyzeigler4641
    @emilyzeigler4641 Před rokem +1

    Thank you for creating this video!! My dad has asked me to help him with his small business and I needed a free way to conveniently and accurately keep track of my hours. I've never used Apps Script, but it was so easy to follow along your instructions. I also like how you included your thinking process (and even mistakes!) in your final edit for this video -- it's very relatable and gives me hope that I can improve at my Google Sheets skills! This is one of the most helpful videos out there!

  • @kendrastockton4698
    @kendrastockton4698 Před 9 měsíci +1

    Thanks for this, it is so helpful! Now, I might be getting overly ambitious, but is it possible to put more than one stopwatch in a sheet by basically duplicating this code in with a different A1? Also, I would love to change the color of the "button" in addition to the start/stop as another visual reminder. I hope I can figure out how to do that without messing up the lovely creation you helped me make so far! You've inspired me.

  • @RogerClubv
    @RogerClubv Před 3 měsíci

    Thank you! This is exactly what I needed.

  • @zadolbalopridumivat
    @zadolbalopridumivat Před 10 měsíci +1

    that's really awesome

  • @Hgames_RBLX
    @Hgames_RBLX Před rokem +1

    Nice! Also, is it possible to have the stopwatch run as a stopwatch on a phone (with decimals)?

    • @BetterSheets
      @BetterSheets  Před rokem

      Not in a live update kind of way. Maybe each minute can. With iterative calculations

  • @user-lx5qk3mn5s
    @user-lx5qk3mn5s Před 10 měsíci

    Does this only work with Workspace account?

    • @BetterSheets
      @BetterSheets  Před 10 měsíci

      as long as you have google sheets... you can do it. in Apps Script. Every sheet has Apps Script. go to the menu: Extensions > Apps Script

  • @nathancox6605
    @nathancox6605 Před 11 měsíci +1

    It won’t save and gives me an error message sayin var is an unexpected token on line 14.

    • @BetterSheets
      @BetterSheets  Před 10 měsíci

      where are you running the script from?

  • @nazirafatxullayeva
    @nazirafatxullayeva Před 9 měsíci

    sorry can you help me
    When chescbox is enabled, the formula should stop working

  • @SeanClarke
    @SeanClarke Před 5 měsíci +1

    Where can we find written instructions for this? You go so fact I can't even tell what you clicked and can't possibly keep up to try and follow the video! Thanks!

    • @BetterSheets
      @BetterSheets  Před 5 měsíci +1

      Transcripts available here and on better sheets. Also the sheets are available for download for Better Sheets members.

    • @SeanClarke
      @SeanClarke Před 5 měsíci

      @@BetterSheets thank you

  • @DJSemEvents
    @DJSemEvents Před 10 měsíci +4

    Man, please slow down when you do your videos, how can anyone learn if you are speeding through the features in the video :(

    • @BetterSheets
      @BetterSheets  Před 10 měsíci

      can't slow down the speed of the video? or pause?

    • @urbantekgames
      @urbantekgames Před 9 měsíci

      Usually, you'd be correct, however, I noticed at least one instance in your video above where I couldn't figure out what you'd done and that was because you didn't slow down and address it. Where you changed e.range.row to e.range.getRow. You made this change and then said it worked, however when you flashed back to the screen briefly I noticed you'd actually then added () at the end as well as adding .getColumn() and fixing the editColum var. For newbies, that can make it incredibly hard to follow your steps, especially if you're not providing the code in a document for them to access and you're expecting them to follow along. You might find for future videos that if you split your screen and keep your code on screen the whole time you're talking people following step by step can then slow down if required but can always view it. I really appreciate your efforts and this has been really handy however I did find following this extremely frustrating at times due to your speed and you editing out some of the changes you'd made. That said, keep up the great work mate.@@BetterSheets

  • @kelseychemistry
    @kelseychemistry Před 7 měsíci +3

    This is literally impossible to follow. Why not just show the code from top to bottom? You back track and refill old rows over and over

    • @BetterSheets
      @BetterSheets  Před 7 měsíci

      Did you watch whole video?

    • @WhatKelsLoves
      @WhatKelsLoves Před 7 měsíci

      Uh yeah. And then I asked AI. And it got it done in a fraction of the time with no back and forth.

    • @ImmZ69420
      @ImmZ69420 Před 6 měsíci

      I agree without a doubt

    • @ZoyaBaranovskaya
      @ZoyaBaranovskaya Před 3 měsíci

      That's almost what I want to do, but so sad, that you didn't explain those functions and classes better. It's really hard for me to understand...

    • @Mike_0325
      @Mike_0325 Před 22 dny

      Same thought. Just provided an idea but not how to really do it. So thumbs down for this video.

  • @ZoyaBaranovskaya
    @ZoyaBaranovskaya Před 3 měsíci

    Why didn't you do that step by step? First one with the usual check box, without changing any start/stop labeles? After you've mixed different tasks in one code, it's almost impossible to follow your way of thinking and coding... for non professional, like me😢 I'm rewatching this video again and again and can't find the solve of my problem. I just need to add time without additing any new rows, labels and checking logs...

    • @BetterSheets
      @BetterSheets  Před 3 měsíci

      So you want to add time... based on a click?

  • @mikec9261
    @mikec9261 Před 4 měsíci

    I just love when tutorial videos move at lightning speed. Might be good to know your audience. Just sayin.

  • @TrueOpinion99
    @TrueOpinion99 Před rokem

    What if there's nothing in my "executions?"

    • @BetterSheets
      @BetterSheets  Před rokem

      It may take a moment to show up or no executions even happened.

  • @Mike_0325
    @Mike_0325 Před 22 dny +1

    After carefully reviewing your video, one thing I realized. You intend to mess up things because your intention is clearly not to teach at all but more on views so as others will rewatch your videos many times, and not really to be educational at all. Bad tactic. You deserve my thumbs down button.

  • @davidwatts2190
    @davidwatts2190 Před 8 měsíci +3

    Just did this in a fraction of the time with GPT.⌛
    Create a button shape with Insert > Drawing.
    Click on the three dots by rolling over your new image and select assign script.
    Add this code (below)🔽🔽 and save.
    Job done!
    function startStopTimer() {
    const sheet = SpreadsheetApp.getActiveSheet();
    const now = new Date();
    const formattedDateTime = Utilities.formatDate(now, Session.getScriptTimeZone(), "MM/dd/yyyy HH:mm:ss");
    const buttonCell = sheet.getRange("A1");
    const buttonState = buttonCell.getValue();
    if (buttonState === "Start Timer" || buttonState === "") {
    // Start the timer
    buttonCell.setValue("Stop Timer");
    const nextRow = sheet.getLastRow() + 1; // Get the next empty row
    sheet.getRange("B" + nextRow).setValue(formattedDateTime);
    } else {
    // Stop the timer
    buttonCell.setValue("Start Timer");
    const lastStartTimeRow = sheet.getLastRow();
    sheet.getRange("C" + lastStartTimeRow).setValue(formattedDateTime);
    }
    }

    • @BetterSheets
      @BetterSheets  Před 8 měsíci +1

      Not sure that is going to work for everyone.