Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.

Usage of [ ] symbols and ( ) in formulas.

Options
Jonathan Chan
edited 12/09/19 in Archived 2016 Posts

Hello Smartsheet community:

 

In the attached picture, why "Task Name" variable needs to be surrounded by [ ] symbols while "Cost" variable does not?

 

Thank you.

 

Jon

 

 

 

Query - Usage of [] and ().jpg

Tags:

Comments

  • Heidi Decker
    Heidi Decker ✭✭✭✭✭✭
    Options

    Hi Yagu,

    I believe the reason for the [ ] around Task Name is because it's 2 words. If your column was TaskName without the space, you wouldn't need the [ ]. By the way, your example didn't show up.

    Peace!

     

  • Jonathan Chan
    Options

    Heidi:

     

    Tks again.

     

    The picture (example) is displayed when I view the message.  Wonder what could be the issue?

     

    Jon

  • J. Craig Williams
    J. Craig Williams ✭✭✭✭✭✭
    Options

    I recommend always putting [] around column names when creating them.

     

    If Smartsheet deitermines they aren't needed, it removes them (I find this annoying, but it isn't a bug).

     

    If you have a column named Cost1, then the correct usage in a formula for row 23 would be [Cost1]23, so spaces aren't the only thing at work.

     

    As Heidi mentioned, the other most likely reason is a space.

     

    It is all about the parsing.


    Craig

     

     

This discussion has been closed.