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 do I create multiple IF statements in a function

Here is my current formula for the column "Tech Setup Price"

=IF(AND([Tech/Set Up]@row = "yes", [Is the frame curved? ]@row = "Yes"), 650, IF(AND([Tech/Set Up]@row = "yes", [Is the frame curved? ]@row = "No"), 500, 0))

This does not include the below added variable of the Neo Modular System, so I want to add that variable. Basically, here is what I want:

$500 if tech set up is Yes and the frame is not curved

$650 if tech set up is Yes and EITHER the frame is curved OR the Frame Type is Neo Modular System

$0 if tech set up is No

Is this possible, or is this too much information for one function?

Thanks!

Tags:

Best Answer

  • Community Champion
    Answer ✓

    @jordanlamagna

    =IF(AND([Tech/Set Up]@row = "yes", OR([Is the frame curved? ]@row = "Yes", [Frame Type]@row = "Neo Modular System")), 650, IF(AND([Tech/Set Up]@row = "yes", [Is the frame curved? ]@row = "No"), 500, 0)

    See if this adjustment to your original formula works for you. All I did was add an OR Statement to your original AND statement.

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

Answers

  • Community Champion

    @jordanlamagna

    The below should work:

    =IF([Tech/Set Up]@row = "Yes", 500 + IF(OR([Is the frame curved?]@row = "Yes", [Frame Type]@row = "Neo Modular System"), 150, 0), 0)

  • Community Champion
    Answer ✓

    @jordanlamagna

    =IF(AND([Tech/Set Up]@row = "yes", OR([Is the frame curved? ]@row = "Yes", [Frame Type]@row = "Neo Modular System")), 650, IF(AND([Tech/Set Up]@row = "yes", [Is the frame curved? ]@row = "No"), 500, 0)

    See if this adjustment to your original formula works for you. All I did was add an OR Statement to your original AND statement.

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • Thank you! I thought I had tried using IF(OR, but I must've inputted it wrong somewhere.

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