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
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!