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.

Nesting IF/OR Statement(s)

I'd like to combine multiple IF/OR statements so when I update my status column another column will auto update:

When Status is Complete or Received list Full, if not, list Empty; when Status is In Process or Quoted list Quarter, if not, list Empty; when Status is Dispatched or Ordered list Half, if not, list Empty.

Is something like this possible? Or am I going about it in the wrong way.

I believe there is an error w/ the Empty section as it is being referenced multiple times. Do I move this to the end?

Here is what I have thus far:

=IF(OR(Status1 = "Complete", Status1 = "Received"), "Full", "Empty", IF(OR(Status1 = "In Process", Status1 = "Quoted"), "Quarter", "Empty", IF(OR(Status1 = "Dispatched", Status1 = "Ordered"), "Half", "Empty")))

Might I need to do individual nested IF statements?

Any suggestions or resolutions are welcome :)

Tags:

Answers

  • ✭✭✭✭✭

    Hi! When you nest IF statements, you put each IF statement into the "else" (the 'if not') section of the earlier IF statement. In short, you only want to have the "Empty" in the end of the very final IF statement.

    Instead of your stated logic: "When Status is Complete or Received list Full, if not, list Empty; when Status is In Process or Quoted list Quarter, if not, list Empty; when Status is Dispatched or Ordered list Half, if not, list Empty."

    What you actually want is this logic: "If Status is Complete or Received list Full, otherwise if Status is In Process or Quoted list Quarter, otherwise if Status is Dispatched or Ordered list Half, otherwise list Empty."

    So something like this:

    =IF(OR(Status1 = "Complete", Status1 = "Received"), "Full", IF(OR(Status1 = "In Process", Status1 = "Quoted"), "Quarter", IF(OR(Status1 = "Dispatched", Status1 = "Ordered"), "Half", "Empty")))

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 ✓
    9
    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