Convert time totals to decimal
Hello,
I need a formula to convert a total number of hours, minutes, and seconds worked on a monthly basis into a decimal form so it can be totaled. The "Hours Worked" column has data I imported from excel that looks like this: 174:23:00
Any thoughts on the exact formula for this?
Best Answer
-
Hi @NickAC
=VALUE(LEFT(Time@row, FIND(":", Time@row) - 1)) + VALUE(LEFT(RIGHT(Time@row, 5), 2)) / 60 + VALUE(RIGHT(Time@row, 2)) / 60 / 60
https://app.smartsheet.com/b/publish?EQBCT=3b2c941231d0415bad4e768afeb0a897
Answers
-
I tried this formula but it adds another 0 behind the total hours and ignores the minutes.
=VALUE(LEFT([Hours Worked]@row, FIND(":", [Hours Worked]@row) - 1) + VALUE(RIGHT([Hours Worked]@row, 2)) / 60)
For example, it converts 176:05:00 to 1760.00, but I'd be looking for something closer to 176.05.
-
Hi @NickAC
=VALUE(LEFT(Time@row, FIND(":", Time@row) - 1)) + VALUE(LEFT(RIGHT(Time@row, 5), 2)) / 60 + VALUE(RIGHT(Time@row, 2)) / 60 / 60
https://app.smartsheet.com/b/publish?EQBCT=3b2c941231d0415bad4e768afeb0a897
-
Awesome, thank you!
-
Happy to help!😁
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!