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

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

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    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))

    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!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!