A leading zero is disrupting my formula.
I have a form that is asking for time. In order to calculate it I break the minutes and seconds out. It is often resulting in answers with a zero in front. This disrupts the formula listed here, =([(H) Hour]1 * 60 * 60) + ([(M) Minute]1 * 60) + [(S) Second]1.
We have many operators and have instructed them to stop putting the leading 0 into the form, but it has not stopped. I am now looking at ways to change my formula or have Smartsheet take the 0 off.
Answers
-
wrap your reference with a value() and it should correct.
-
Thanks for the quick reply. I tried wrapping the formula with VALUE() and it lead to the same error
=VALUE(([(H) Hour]1 * 60 * 60) + ([(M) Minute]1 * 60) + [(S) Second]1)
-
=(value([(H) Hour]1) * 60 * 60) + (value([(M) Minute]1) * 60) + value([(S) Second]1)
-
That got it.
Thank you
-Cory
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 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!