Pull out numbers from a duration string
A customer of ours is going to be providing data to us daily in the format of "Install Duration" I want to pull only the time out of that so I can get an average. I basically am just trying to remove "hour" or "hours"
I could do a =left() formula, but the number of decimals can change.
Im certain this is an easier formula, I just could use some help with it!
Answers
-
TO be able to pull an average, you also need numerical data. The LEFT function only outputs text strings.
First we use the LEFT with a FIND function to find the space and tell the left function to pull up to that.
=LEFT([Install Duration]@row, FIND(" ", [Install Duration]@row) - 1)
Then we wrap it in a VALUE function so that the output is numerical data.
=VALUE(LEFT(.......))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 210 Industry Talk
- 441 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 300 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!