Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

String Formula/Substitute Formula

Hello, I have two questions. Can someone help me understand the coding created at the end of this string query I use for a prepopulated form? Also, when I add a new section looking for the "Time," do I need to add an extra substitute in the formula, and do I add any "codes" at the end? Here's the formula I'm referring to:

End of formula: " ", "%20"), ",", "%2C"), "#", "%23"), ":", "%3A"), CHAR(10), "%0D%0A")

="https://app.smartsheet.com/b/form/xxxxxxxxxx?" + SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE("Event ID =" + [Event ID]@row + "&Event Name=" + [Event Name]@row + "&Firm=" + Firm@row + "&Event Location=" + [Event Location]@row + "&Event Date=" + [Event Date (H)]@row + "&Time=" + Time@row, " ", "%20"), ",", "%2C"), "#", "%23"), ":", "%3A"), CHAR(10), "%0D%0A")

Most Appreciated!

Terry

Tags:

Answers

  • Community Champion

    String Formula/Substitute Formula

    Hi Terry,

    I hope you're well and safe!

    I think you only need to add another SUBSTITUTE in the beginning of the formula.

    Did that work/help?

    I hope that helps!

    Be safe, and have a fantastic day!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my comment(s) help/answer your question or solve your problem? Please support the Community and me by marking it - Insightful 💡- Vote Up ⬆️ - Aweseome ❤️ - or/and as the accepted answer. It will make it easier for others to find a solution or help to answer! I appreciate it, thanks!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Community Champion

    ="https://app.smartsheet.com/b/form/xxxxxxxxxx?" + SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE("Event ID =" + [Event ID]@row + "&Event Name=" + [Event Name]@row + "&Firm=" + Firm@row + "&Event Location=" + [Event Location]@row + "&Event Date=" + [Event Date (H)]@row + "&Time=" + Time@row, " ", "%20"), ",", "%2C"), "#", "%23"), ":", "%3A"), CHAR(10), "%0D%0A")

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • ✭✭✭
    edited 07/29/24

    Hi, I'm doing well! I added Substitute but I'm still getting an #Invalid Operation error message.

    image.png

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions