Hours:Minutes:Seconds reported by consultant at $/hour calculated to the hr/min/sec used
I have a consultant who bills at the hourly rate down to the Hour:Min:Seconds time used.
They provide us with Time in this format 1:13:51. How do I take that time and multiply it by the rate to give correct cost per time in USD?
Best Answer
-
Depending on where you are pulling the number or hours and hourly rate from, this will need to be adjusted somewhat to fit your use case.
=Rate@row * (IF(LEN(Hours@row) > 5,(VALUE(Left(Hours@row, LEN(Hours@row) - 6))), 0) + (VALUE(MID(Hours@row, LEN(Hours@row) - 4, 2)) / 60) + (VALUE(RIGHT(Hours@row, 2)) / 3600))
Edit: Adding screenshot to show how I set this up.
Answers
-
Depending on where you are pulling the number or hours and hourly rate from, this will need to be adjusted somewhat to fit your use case.
=Rate@row * (IF(LEN(Hours@row) > 5,(VALUE(Left(Hours@row, LEN(Hours@row) - 6))), 0) + (VALUE(MID(Hours@row, LEN(Hours@row) - 4, 2)) / 60) + (VALUE(RIGHT(Hours@row, 2)) / 3600))
Edit: Adding screenshot to show how I set this up.
-
PERFECT! Thank you
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!