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(.......))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!