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
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!