Formulas for Calculating Time
Comments

@GarrettDyer It is a read only HTML sheet, so I cannot see any of the underlying formulas.

@Paul Newcome Here is the sheet. I worked on it quite a bit and think I have everything lined out. I'm not sure that I have any issues with it as of now. Except of the last two columns with Smartsheet changing the time to PST instead of the CST that is my current time zone.

@GarrettDyer I believe there may also be a solution tucked away somewhere in this thread that should help you adjust for the time zone issue.

@Paul Newcome I have seen the formulas, the issue comes up that the change is not consistent to PST. If I write the formulas to make the adjustment and the times are in CST then I will have the issue for calculations, just reversed.
If you check the cell history in the "Time Changed" column you will see the events where Smartsheet Automation is making the changes and messing things up.

Any chance you can help? Trying to get the Duration to reflect the difference between start and stop (shown in minutes) in hh:mm if possible?

@Jimrny Looks like you've already got it. Just replace the " hrs " in your formula with ":" 
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!

if you want to have the "HH" part of it, you need a conditional with a len to put a zero. Basically a duplicate of the formula

Whoops, so the issue I'm getting is my duration seems off slightly.
Instead of 59 minutes, it's reflecting 1 hour and 59 minutes?
I am looking to reflecting "XX hrs XX mins" under duration. Seems to be rounding up and adding the hour before hand.
Update: It looks like it reflects the hour properly after 60 minutes. What could be causing the additional hour displayed at 59 minutes?

try using rounddown() instead of round

Can anyone assist to see if this formula is correct for pulling minutes? For some reason I'm not sure if it's calculating the correct minutes.

@Jimrny For some reason, when using MOD on a negative number, it's giving you the wrong portion of the remainder. MOD(136, 60) should be 16, but it gives you 44. MOD(148, 60) gives you 32 instead of 28. What these have in common is that if you subtract MOD's calculation from 60, you get the right number of minutes. 6044 = 16, 6032 = 28.
So add an IF to your formula to include that 60 minus calculation in when the Difference@row < 0 :
=IF(Difference@row < 0, ROUND(Difference@row / 60, 0) + ":" + (60  MOD(Difference@row, 60)), ROUND(Difference@row / 60, 0) + ":" + MOD(Difference@row, 60))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!

@Jeff Reisman , that worked out perfectly! Maybe you could assist with this? For some reason I believe anything over 30  59 minutes in Difference is showing an extra hour in Duration.


Just applied, will test and see at 30, 45 and 59 minutes.

@Paul Newcome I have read through all 10 of these pages (thanks so much for putting this all together) and I still am having issues. I have used the move row suggestion to get a date time stamp for when a request is completed. I then use a vlookup to get the completed date/time stamp into my main sheet. I am trying to calculate a TAT from Created to Completed, but a simple CompletedCreated won't work. Most of the TAT will be same day, but many will not be. I have tried various other solutions, like the one to extract the date in one field & time in another for each of the Create and Completion date/time stamps. This works for the Created date but for the date I get from the vlookup I get an "Invalid Data Type". I have added +"" to the end of my Completed vlookup formula to get the time to populate. Any ideas on what I am doing wrong? Thanks so much for any help.
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 62.3K Get Help
 364 Global Discussions
 199 Industry Talk
 428 Announcements
 4.4K Ideas & Feature Requests
 136 Brandfolder
 127 Just for fun
 128 Community Job Board
 444 Show & Tell
 28 Member Spotlight
 1 SmartStories
 283 Events
 35 Webinars
 7.3K Forum Archives