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.

how to automatically set a number to an entry

edited 09/09/24 in Formulas and Functions

Hi All,

I'm trying to make an equation wherein if I type "Critical" in column 1, column 2 then will automatically assign it as "priority 1"

Best Answer

  • ✭✭✭✭
    Answer ✓

    Hi Leod, you could use an if statement for this purpose.

    In column two, use the following formula: =IF(column1@row="Critical","Priority 1",column1@row)

    This will make anything that is Critical in column 1 priority 1 in column 2. If column 1 is not critical, then column 2 will display what is in column 1

Answers

  • ✭✭✭✭
    Answer ✓

    Hi Leod, you could use an if statement for this purpose.

    In column two, use the following formula: =IF(column1@row="Critical","Priority 1",column1@row)

    This will make anything that is Critical in column 1 priority 1 in column 2. If column 1 is not critical, then column 2 will display what is in column 1

  • edited 09/09/24

    Thank you, it works. Now, how do I add multiple conditions? I tried this equation below, but it only works at the 2nd condition, "Medium." the 3rd condition shows an error.

    =IF([Fault Severity]@row = "Critical", "1", IF([Fault Severity]@row = "Medium", "2"), IF([Fault Severity]@row = "Low", "3"))

    =IF([Fault Severity]@row = "Critical", "1", [Fault Severity]@row = "Medium", "2", [Fault Severity]@row = "Low", "3")

  • ✭✭✭✭

    =IF([Fault Severity]@row = "Critical", "1", IF([Fault Severity]@row = "Medium", "2", IF([Fault Severity]@row = "Low", "3")))

    I think you had an extra parenthesis in there. Let me know if this does not work

  • it worked thank you

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    8
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2