Calculation error between two time stamps.
I am currently having a calculation error. first row total should be 2,50 but I am getting 3,50.
The second row calculation is correct with the exact same formula. Only difference is that the second row does not have any minutes.
=IFERROR(VALUE(LEFT([Time Out]@row; 2)) + (VALUE(RIGHT([Time Out]@row; 2)) / 60) - VALUE(LEFT([Time In]@row; 2)) + (VALUE(RIGHT([Time In]@row; 2)) / 60); 0)
I dont know where I am going wrong with this formula.
Any assistance will be appreciated.
M
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Michelle Basson
Smartsheet Overachiever Alumni | Solution Consultant | Lover of everything Smartsheet
https://www.linkedin.com/in/michelle-basson/
CERTIFIED SMARTSHEET PLATINUM PARTNER
www.projectplanservices.co.uk
Best Answer
-
Try adding parentheses around the two separate statements to ensure the math is calculating in the correct order:
=IFERROR((VALUE(LEFT([Time Out]@row, 2)) + (VALUE(RIGHT([Time Out]@row, 2)) / 60)) - (VALUE(LEFT([Time In]@row, 2)) + (VALUE(RIGHT([Time In]@row, 2)) / 60)), 0)
Let me know if this helped! 🙂
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Answers
-
Try adding parentheses around the two separate statements to ensure the math is calculating in the correct order:
=IFERROR((VALUE(LEFT([Time Out]@row, 2)) + (VALUE(RIGHT([Time Out]@row, 2)) / 60)) - (VALUE(LEFT([Time In]@row, 2)) + (VALUE(RIGHT([Time In]@row, 2)) / 60)), 0)
Let me know if this helped! 🙂
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
Thanks @Genevieve P.
Apologies for the late reply. This worked perfectly. 😁
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Michelle BassonSmartsheet Overachiever Alumni | Solution Consultant | Lover of everything Smartsheet
https://www.linkedin.com/in/michelle-basson/CERTIFIED SMARTSHEET PLATINUM PARTNER
www.projectplanservices.co.uk
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!