Calculating Time

Options

Good Afternoon,

We are looking to figure out if it is possible to caculate time in Smart sheets. But we need to be able to figure out times for those items checked vs not checked. Is there a way to do this without sorting the sheet out?

Thanks.

screenshot1.JPG

Comments

  • Chris McKay
    Chris McKay ✭✭✭✭✭✭
    Options

    Hi Ann,

    =SUMIF(range, criterion, [sum_range]) will do what you need. Based on your example, this would look like:

    =SUMIF([Executive Session]:[Executive Session], 1, Minutes:Minutes). So the result based on the above would be 5.

  • Chris,

    Thank You!



    Follow up question. So I set that as a new row in my sheet and I made a second row to divide by 60 to figure out how many hours.

    I put your formula in for Executive Session Meeting and it gave me the total, 435 minutes. 

    Then in the next row I put in =SUM(Minutes55) / 60



    Then this screens shot is the answer I got. How do I turn that into a number of hours?

    Thanks. 

     

    Capture.JPG

  • Chris McKay
    Chris McKay ✭✭✭✭✭✭
    Options

    Hi Ann,

    You are more than welcome.

    The reason you're getting an error is that we've previously set a range and sum_range that includes the entire columns. That means your new row will also be included.

    Essentially you're creating a loop (circular reference) as the =SUMIF([Executive Session]:[Executive Session], 1, Minutes:Minutes) formula is trying to read the value in Executive Session and Minutes for Row 55, while row 55 is simultaneously trying to calculate a value (from row 54) that actually includes its own value.

    It's all very confusing and Smartsheet is throwing out an error.

    To get around this, I'd suggest moving your total formulas to the first two rows in another column (call it Totals) or even a new summary sheet. Your hours formula can also be simplified by removing SUM (i.e. =Totals2 / 60), as you're not really summing anything.