How to extract substring from a cell between certain characters in smartsheet

manasaMS
✭✭✭
Here I have multiple hyphens(-) but i want to only extract the text between the left most hyphen and right most hyphen
For eg: Email-Apple-banana-mango-No Response is the string and I want to extract Apple-banana-mango
Answers
-
For this one you would use something more like this:
=MID([Column name]@row, FIND("-", [Column Name]@row) + 1, FIND("~", SUBSTITUTE([Column Name]@row, "-", "~", LEN([Column Name]@row) - LEN(SUBSTITUTE([Column Name]@row, "-", ""))) - (FIND("-", [Column Name]@row) + 1))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 506 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!