Time Tracking - Hours and Minutes

Ezra ✭✭✭
edited 12/09/19 in Formulas and Functions

I was working on a way to track some task hours and minutes... came up with this:

One of the problems I ran into is that if you put "00" (double-ought) or any minute with a preceding zero, it would error. You can see the work-around I made, not the most elegant, I admit.. If Smartsheet could ignore preceding zeros, it would save a lot of IF statements (see [Start Time] and [End Time] columns)



  • L_123
    L_123 ✭✭✭✭✭✭



    I managed to simplify it a little bit, and also added an end date so it can work for multiple days. Also I made it so you can type any number of zeroes before your minutes or hours and it will still work.

  • Ezra
    Ezra ✭✭✭

    Well done. Much more robust and elegant.

  • L_123
    L_123 ✭✭✭✭✭✭
    edited 03/19/19

    I don't know about that, but I've found that, in smartsheet at least, the more simple the solution is the best way to go. Feel free to take my solution. i've done this several times, and each time it seems to get easier. The one below is one of my favorites i've built, though it is outdated in what formulas I used



    This one is viewed from the links i've posted in the past on the community almost daily, and I use it very often to scare our employees who want to try dealing with time in smartsheet.

  • Hi @L_123 , Someone can explain me how I can use your template? It would be much appreciated. Thanks :)

  • L_123
    L_123 ✭✭✭✭✭✭

    There are 2 solutions on that template. The left of the black line, and the right. The left uses modified/created columns for the date/times, the right uses manual input for the date/times. If you want to use one or the other, you can hover your mouse over the formulas to review them.

    That said, these are fairly old solutions, we've found better and different ways to calculate time.

    @Paul Newcome has quite a few of them here that have better instructions and more specific use cases: