Finding Average Duration Time
Answers
-
Glad you were able to get it working. I must have looked at the wrong column names. My apologies.
Happy I was still able to help though. 👍️
-
Hi Paul, Any way to convert the following:
=IFERROR(SUM([Total Onsite Time]:[Total Onsite Time]) / COUNTIF([Store Status]:[Store Status], >""), "")
into hh:mm format?
Please and thank you
-
Yes. Is the [Total Onsite Time] column in hours? If so, it would be
=INT([Total Onsite Time]@row) + ":" + IF(([Total Onsite Time]@row - INT([Total Onsite Time]@row)) / 60 < 10, "0") + ([Total Onsite Time]@row - INT([Total Onsite Time]@row)) / 60
-
That is the formula I have in the Total Onsite Time cell. The problem I am having is that the average is showing 8.80 in the summary field and I would like to convert that into 8:50 (if 8.80 is indeed 8 hours and 50 minutes.)
Time calculation in Smartsheet is an absolute beast. I am obviously bowing to the master.
Sharon C
-
The above should convert it to 8:50.
-
OK so I created a new summary field used the formula above using Average Deployment Time in lieu of the @ row callout:
=INT([Average Deployment Time]#) + ":" + IF(([Average Deployment Time]# - INT([Average Deployment Time]#)) / 60 < 10, "0") + ([Average Deployment Time]# - INT([Average Deployment Time]#)) / 60
and here is the result I got:
8:00.01325
I tried substituting the / with a *
and here is the result I got:
8:47.7
Any way I can round the 47.7 up to 50?
-
What is in [Average Deployment Time]#?
-
It is the Summary Field as opposed to the row.
-
I understand where it is, but what exactly is in the field? Is there a formula?
-
Apologies,
Here is the formula for the Deployment Time.
=IFERROR(SUM([Total Onsite Time]:[Total Onsite Time]) / COUNTIF([Store Status]:[Store Status], >""), "")
I was able to Round:
My formula for the Average Deployment Time (converted to hh:mm format) is:
=INT([Deployment Time]#) + ":" + IF(([Deployment Time]# - INT([Deployment Time]#)) * 60 < 10, "0") + ROUND([Deployment Time]# - INT([Deployment Time]#), 2) * 60
Result was 8:48
-
Yes. I was going to use the ROUND function as well. I just wanted to make sure we were rounding the correct part. So it is working for you now?
-
It is. Just needed the helper field and rounding. Thank you again for your help.
-
Great. Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!