Support - Formula that calculates difference between times in a quarterly increments
Hi Smartsheet Community,
I'm attempting to figure out a simple formula that would calculate the difference between 0800 and 0830 in quarterly increments. At this current time i'm unable to figure out how to create a successful formula that would show the correct -0.50 for the following.
Should 0825 and 0900 be entered, the answer should be -0.75
Any assistance would be greatly appreciated. 😊
Answers
-
0800 or 0830 are texts, so you need to use the text function to get the hour part and minute part and convert it to a number with the VALUE function to calculate the difference.😂
=(VALUE(LEFT([Start Time]@row, 2)) * 60 + VALUE(RIGHT([Start Time]@row, 2)) - VALUE(LEFT([End Time]@row, 2)) * 60 - VALUE(RIGHT([End Time]@row, 2))) / 60
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!