Time Tracker Google Sheets: How to create an app using Google Apps Script

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 95

  • @AdminAtlas
    @AdminAtlas 5 месяцев назад

    Amazing, you just made my life easy to track hours for my employees without paying anymore memberships
    THANK YOU SO MUCH

  • @tanveerhussain3881
    @tanveerhussain3881 3 года назад +1

    World's Best Teacher
    Best Quality
    Learn Easy and Understand
    I Love And Like All Video

  • @AG-qc8ek
    @AG-qc8ek 10 месяцев назад

    WAW COOL I'm a new cs student, 43 yo I'm much more excited!! thank you bro !!! :))

  • @ronmariani
    @ronmariani 2 месяца назад

    Brilliant and to the point !! Well Done Sir

  • @nitanew1
    @nitanew1 Год назад +1

    Great video...you are AWESOME!! Can you manually edit the time entry? For scenarios in which they begin work but forgot to clock in, thus need to adjust the time.

    • @DanielKappes-m2t
      @DanielKappes-m2t Год назад

      Did you ever figure this out? When I edit the time the total hours dont adjust properly

  • @dmitry8732
    @dmitry8732 2 года назад

    Exactly what I was looking for.

  • @Nate-ix1mo
    @Nate-ix1mo 3 года назад

    Was looking for something like this, thank you!

  • @DevonTheInspiredFilmmaker
    @DevonTheInspiredFilmmaker 4 года назад

    This worked GREAT! This is exactly what I needed! Thanks for the tutorial!

    • @sonukumar-bo7qk
      @sonukumar-bo7qk 3 года назад

      Hello, can u please help me with the code

    • @brig9087
      @brig9087 3 года назад

      Please Help! I don't know what to do next.. this is the error after I run the codes..
      TypeError: Cannot read property 'getLastRow' of null

    • @mischelsanmiguel2007
      @mischelsanmiguel2007 Год назад

      @@brig9087 hi! did you resolve yours? i just tried it now and got the same result. what did you do to fix it?

  • @nurazizah8063
    @nurazizah8063 Год назад

    Hi, I have implemented the code and it's awesome. I'm just wondering, I've tried several "test" and it goes until row 19, if I wanted to start using it, how to delete all of the previous data since it is not gone even though I deleted it. Waiting for your answer, thanks!

  • @iclx7844
    @iclx7844 3 года назад +3

    do you have a link to a template??

  • @kristinemoffett6017
    @kristinemoffett6017 3 года назад +2

    How did you get all the codes? I followed your video and don't know how you found them

  • @DanielKappes-m2t
    @DanielKappes-m2t Год назад

    Okay got this working... MOSTLY.... what about editing the clock in and out times? the total hours does not properly adjust

  • @mimitv7784
    @mimitv7784 3 года назад

    Thank you so much :) but how can i show an error box that says OVERBREAK when you clock out and the result is beyond 45 mins. and it will also ask a question "Reason for overbreak:"

  • @paconogara6527
    @paconogara6527 2 года назад

    Is it possible to capture multiple "Start time and End Time" punches if the sheet is shared to multiple users using different devices/PC? Like for example user1 punches 1:00am then user2 punches his start time at 1:02am is it possible that their punches will be recorded at the same time?

  • @chrissharpe8598
    @chrissharpe8598 2 года назад

    When i fill out the rest of the sheet with formulas or drop boxes it resorts to the last cell is there anything i could change so it only focuses on A, B , C?

  • @Cloud-mo4vv
    @Cloud-mo4vv Год назад

    Can you add a code where the employees can see what time they need to return? Something like a 15minutes break tracker, and they need to clock back in before the 15minute break time

  • @biancalaroza7732
    @biancalaroza7732 3 года назад

    how can set the code if i wanted my time stamp to be started on a specific column and with a column freeze from A to J. I wanted to start the Clock In and Out in Colum K onwards because columns A-J will be used for a different data and that is where i will freeze the column. i have data from A to J columns and rows, since we are using the lastrow script it will time stamp to the last row i used from A to J column but i wanted to record the time at the starting rows of columns K to Z. Can you help me?

  • @kyleelizaespinoza6749
    @kyleelizaespinoza6749 Год назад

    Is there a way, that an employee can only click the In and out, only for his/her name?
    and not for the other employee?

  • @lalitobodoque
    @lalitobodoque 2 года назад

    It works in a smart phone with the app of google sheets?

  • @southerntagalogcommand2994
    @southerntagalogcommand2994 3 года назад +1

    kindly help me out, it keeps saying that the lastRow is not define, line 12 base on your turial. what should i DO?

    • @mustaphaighchane4265
      @mustaphaighchane4265 3 года назад

      if you know how plz tel me

    • @hnag1907
      @hnag1907 Год назад

      Name your sheets exactly like the video and also the pages

  • @SunilKumar-ob6vs
    @SunilKumar-ob6vs 2 года назад

    Can it handle days count also means if out time in next day ...if yes please update...

  • @gianliv04
    @gianliv04 3 года назад

    what if I wanted to separate the date and time? That would result in totals the name and time and the total accumulated hours?

  • @raimondas27
    @raimondas27 3 года назад

    How to restrict to only one employee clocked in at any given time? Before next can clock in the active one needs to clock out.

  • @DevonTheInspiredFilmmaker
    @DevonTheInspiredFilmmaker 4 года назад

    Quick question, to clear all the information, just delete the boxes?

    • @CodeWithCurt
      @CodeWithCurt  4 года назад

      Yes to start over just clear the google sheet cells

  • @Awhienk
    @Awhienk 4 года назад +1

    One subscribe from Indonesia

  • @centralcomputer7545
    @centralcomputer7545 4 года назад +1

    i was try,but At Total Hour Not Replace, please Can you help me

  • @dmitry8732
    @dmitry8732 2 года назад

    If the script concatenates time values instead of summing them. Where can be an error?

  • @CodeWithCurt
    @CodeWithCurt  4 года назад +7

    Google Apps Script Code used in Video Below:
    function clockIn() {

    //DEFINE ALL ACTIVE SHEETS
    var ss = SpreadsheetApp.getActiveSpreadsheet();

    //DEFINE MAIN SHEET
    var mainSheet = ss.getSheetByName("MAIN");
    //LAST ROW ON MAIN SHEET
    var lastRow = mainSheet.getLastRow();
    for (var j = 5; j

  • @redefyneemployees899
    @redefyneemployees899 Год назад

    Has anyone gotten this to work on a tablet or mobile with the sheets app? OR does this have to be run on a desktop/laptop?

  • @premdavid3131
    @premdavid3131 3 года назад +1

    Hi ,
    I have typeError
    Cannot read property 'getlastrow' of null

    • @hnag1907
      @hnag1907 Год назад

      Name the sheet and pages exactly as in the video

  • @mhonzregis3649
    @mhonzregis3649 4 года назад

    I want the output of hours to be in a duration format or hh:mm:ss how do I do that, I trie changing .setNumberFormat("#0.00") to .setNumberFormat("hh:mm:ss") but its giving me an incorrect total of hours

    • @CodeWithCurt
      @CodeWithCurt  3 года назад

      Below is the replacement code to get HH:MM:SS
      For Function clockOut()
      var totalTime = (mainSheet.getRange(j,3).getValue() - mainSheet.getRange(j,2).getValue());
      mainSheet.getRange(j,4).setValue(new Date(totalTime).toISOString().substr(11, 8));

      For Function TotalHours()
      var rate = mainSheet.getRange(j, 3).getValue() - mainSheet.getRange(j, 2).getValue();
      mainSheet.getRange(5+i,7).setValue(new Date(totals[i][1]).toISOString().substr(11, 8)).setFontSize(12);

    • @RaneeA
      @RaneeA 3 года назад

      @@CodeWithCurt I tried this replacement, but it turned out that the "starting interval line is too short"
      In the cell of hours, the time appears correctly in the format hh: mm: ss, but in Total Hours nothing appears in the name of the cell to the right of it

    • @thomastdg8820
      @thomastdg8820 3 года назад

      @@RaneeA dit you manege to fix this problem?

    • @brigittea1118
      @brigittea1118 3 года назад

      @@CodeWithCurt Hello Sir, good day.. do you have codes for In and Out but will be reflected on the column H (In), column I (Out), column (J) for calculated duration of time (h:mm:ss)?? please help. this is my assignment. I would like to change the reference to column C (instead of column B1). thank you so much...

  • @sarahgolder
    @sarahgolder Год назад

    Mine just brings up apps script and then says clockin and clockout cannot be found

  • @merrychristinedalusung3727
    @merrychristinedalusung3727 4 года назад +2

    Kindly share the functions? 😊

  • @rebeccaduran1195
    @rebeccaduran1195 3 года назад +2

    Hi can anyone share the code? It's not in the comment. TIA for the reply 😊

    • @hnag1907
      @hnag1907 Год назад

      On the RHS top there is a button "Share" Click there and send

  • @akashtakvani4864
    @akashtakvani4864 4 года назад

    I typed everything. But getting "typeerror : cannot read property 1 of undefined. "
    Please help

  • @FentiPardini
    @FentiPardini Год назад

    why is the total hours not summarized, even though the code entered is exactly the same, thank you

  • @asramakiis6902
    @asramakiis6902 2 месяца назад

    how to change the total hours into minute ?

  • @imadethisformcds989
    @imadethisformcds989 3 года назад +1

    Can you post the code in the comment plz

  • @mischelsanmiguel2007
    @mischelsanmiguel2007 Год назад

    how to change the timezone?

  • @elia6688
    @elia6688 3 года назад

    Can you do an app version ? Will pay for it:)

  • @manuelmezquita9462
    @manuelmezquita9462 3 года назад

    IDK y i get getlastrow error like i did everything to the letter

    • @jsbeardessentials
      @jsbeardessentials 3 года назад

      I did the same and I caught an error on line 12. Couldn’t figure it out.

    • @hnag1907
      @hnag1907 Год назад

      Name the sheet and pages exactly as in the video

  • @dantyr11
    @dantyr11 11 месяцев назад

    WHY can't I find what in excel

  • @kenneithmind4597
    @kenneithmind4597 3 года назад +1

    where is the coding?

  • @llawliet3552
    @llawliet3552 2 года назад

    Good day, Sir, why is the script won't add a new record every time it read on this part? and sometimes it takes more than a minute running the script.
    // ADD CLOCK IN RECORD
    mainSheet.getRange(lastRow+1,1).setValue(mainSheet.getRange('B1:B1').getValue()).setFontSize(12);
    mainSheet.getRange(lastRow+1,2).setValue(new Date()).setNumberFormat("MM/dd/yyyy hh:mm:ss A/P").setHorizontalAlignment("left").setFontSize(12);

  • @rdlowesinc.9987
    @rdlowesinc.9987 3 года назад

    Drop down not working on Mobile device

  • @JeykNeyra
    @JeykNeyra 4 года назад

    Where is the Code??

  • @johnharrbrothers
    @johnharrbrothers 11 дней назад

    Hi. How fix total hours? if gigured this: 0.000.010.000.04
    Thanks for script

  • @noeme17
    @noeme17 4 года назад

    I hope he shares the code so we don't have to type everything

    • @akashtakvani4864
      @akashtakvani4864 4 года назад

      I typed everything. But getting "typeerror : cannot read property 1 of undefined. "
      Please help

    • @akashtakvani4864
      @akashtakvani4864 4 года назад

      I typed everything. But getting "typeerror : cannot read property 1 of undefined. "
      Please help

    • @noeme17
      @noeme17 4 года назад +1

      @@akashtakvani4864 had the same error too

    • @ericsonreyes2220
      @ericsonreyes2220 4 года назад

      Syntax Error

    • @akashtakvani4864
      @akashtakvani4864 4 года назад

      @@noeme17 what will next if u can help me

  • @manuelmezquita9462
    @manuelmezquita9462 3 года назад

    man its not working

  • @akashtakvani4864
    @akashtakvani4864 4 года назад +2

    Code not shared :( too much disappointed.

    • @CodeWithCurt
      @CodeWithCurt  4 года назад

      Posted Code in Comments

    • @mimitv7784
      @mimitv7784 3 года назад

      @@CodeWithCurt I couldn’t find it 🥺

  • @rileymorrissey5688
    @rileymorrissey5688 3 года назад

    do you have a link to a template??