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
Michelle Basson
Smartsheet Overachiever Alumni | Solution Architect | 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
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
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
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
Thanks @Genevieve P.
Apologies for the late reply. This worked perfectly. 😁
Michelle Basson
Smartsheet Overachiever Alumni | Solution Architect | 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
- Customer Resources
- 66.1K Get Help
- 430 Global Discussions
- 149 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 154 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!