How To Create a Stop Watch in Google Sheets

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • 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: www.youtube.co...
    🕰️ Time Saving Tips, Tricks and Techniques
    bettersheets.c...
    🤖 Add AI to Your Sheets
    bettersheets.c...
    🚀 Tools and Templates For YOU:
    Generate Google Sheets Formulas:
    bettersheets.c...
    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.c...
    Tiny Sheets - Easily delete unnecessary rows and columns
    Free Add-on: tinysheets.bet...
    Sheet Styles - Change your spreadsheets style to match your mood.
    Get it now: sheet-styles.b...
    Atomic Sheets - 100 Spreadsheet elements you can add to your spreadsheets immediately.
    30 free: atomicsheets.com/
    Generate REGEXMATCH formulas to clean data
    bettersheets.c...
    Generate SPARKLINE formulas to make cool charts inside of cells.
    bettersheets.c...
    😎 Most Popular Tips and Tricks
    Extract Urls from Google Sheets
    blog.bettershe...
    ⚙️Automate Your Sheets:
    Spreadsheet Automation 101, get started making your sheets work for you, while you sleep
    Start Automating: bettersheets.c...
    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/...
    📺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.

КОМЕНТАРІ • 37

  • @kendrastockton4698
    @kendrastockton4698 Рік тому +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.

  • @emilyzeigler4641
    @emilyzeigler4641 Рік тому +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!

  • @SeanClarke
    @SeanClarke 7 місяців тому +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  7 місяців тому +1

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

    • @SeanClarke
      @SeanClarke 7 місяців тому

      @@BetterSheets thank you

  • @Hgames_RBLX
    @Hgames_RBLX Рік тому +1

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

    • @BetterSheets
      @BetterSheets  Рік тому

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

  • @RogerClubv
    @RogerClubv 6 місяців тому

    Thank you! This is exactly what I needed.

  • @AZSTRHospitalityLLC
    @AZSTRHospitalityLLC Рік тому

    Does this only work with Workspace account?

    • @BetterSheets
      @BetterSheets  Рік тому

      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 Рік тому +1

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

    • @BetterSheets
      @BetterSheets  Рік тому

      where are you running the script from?

  • @nazirafatxullayeva
    @nazirafatxullayeva Рік тому

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

    • @BetterSheets
      @BetterSheets  8 місяців тому +1

      Try going through the whole video

  • @nabrydlovyhaduvaty
    @nabrydlovyhaduvaty Рік тому +1

    that's really awesome

  • @DJSemEvents
    @DJSemEvents Рік тому +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  Рік тому

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

    • @urbantekgames
      @urbantekgames Рік тому

      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 10 місяців тому +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  10 місяців тому

      Did you watch whole video?

    • @WhatKelsLoves
      @WhatKelsLoves 10 місяців тому

      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 9 місяців тому

      I agree without a doubt

    • @ZoyaBaranovskaya
      @ZoyaBaranovskaya 6 місяців тому

      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 3 місяці тому

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

  • @ZoyaBaranovskaya
    @ZoyaBaranovskaya 6 місяців тому

    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  6 місяців тому

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

  • @mikec9261
    @mikec9261 7 місяців тому

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

  • @TrueOpinion99
    @TrueOpinion99 Рік тому

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

    • @BetterSheets
      @BetterSheets  Рік тому

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

  • @Mike_0325
    @Mike_0325 3 місяці тому +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 11 місяців тому +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  11 місяців тому +1

      Not sure that is going to work for everyone.