Combining multiple SUMIFS into one formula

Tina Ciak
Tina Ciak ✭✭✭✭
edited 12/09/19 in Formulas and Functions

I have used and tried each of these formulas separately and they work beautifully.

=SUMIFS([Total Savings]@row, Lane@row, "IL5"

=SUMIFS([Total Savings]@row * 90 / 100, Lane@row, "IL4"

=SUMIFS([Total Savings]@row * 50 / 100, Lane@row, "IL3"

=SUMIFS([Total Savings]@row * 10 / 100, Lane@row, "IL2"

=SUMIFS([Total Savings]@row * 1 / 100, Lane@row, "IL1"

= SUMIFS([Total Savings]@row * 0, Lane@row, "IL0"

However, what I need to do, is combine them into one. Below is what I tried to do, but I keep getting INCORRECT ARGUMENT. Can someone please help me figure out what I'm doing wrong?

=SUMIFS([Total Savings]@row, Lane@row, "IL5",SUMIFS([Total Savings]@row * 90 / 100, Lane@row, "IL4", SUMIFS([Total Savings]@row * 50 / 100, Lane@row, "IL3", SUMIFS([Total Savings]@row * 10 / 100, Lane@row, "IL2", SUMIFS([Total Savings]@row * 1 / 100, Lane@row, "IL1", SUMIFS([Total Savings]@row * 0, Lane@row, "IL0"))))))

 

Thank You!

Comments

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi Tina,

    You'd want to use multiple IF functions for this instead. Each IF function will check if something is true and if yes, it will stop and not look further, but if no, it will continue to the next IF function.

    Make sense?

    Try something like this.

    =IF(Lane@row = "IL5"; [Total Savings]@row; IF(Lane@row = "IL4"; [Total Savings]@row * 90 / 100; IF(Lane@row = "IL3"; [Total Savings]@row * 50 / 100; IF(Lane@row = "IL2"; [Total Savings]@row * 10 / 100; IF(Lane@row = "IL1"; [Total Savings]@row * 1 / 100; IF(Lane@row = "IL0"; [Total Savings]@row * 0))))))

    The same version but with the below changes for your and others convenience.

    =IF(Lane@row = "IL5", [Total Savings]@row, IF(Lane@row = "IL4", [Total Savings]@row * 90 / 100, IF(Lane@row = "IL3", [Total Savings]@row * 50 / 100, IF(Lane@row = "IL2", [Total Savings]@row * 10 / 100, IF(Lane@row = "IL1", [Total Savings]@row * 1 / 100, IF(Lane@row = "IL0", [Total Savings]@row * 0))))))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    I hope that helps!

    Have a fantastic week!

    Best,

    Andrée Starå

    Workflow Consultant / CEO @ WORK BOLD

    work-bold

    SMARTSHEET EXPERT CONSULTANT & PARTNER

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

    W: www.workbold.com | E:[email protected] | P: +46 (0) - 72 - 510 99 35

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

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    More info about the IF function: https://help.smartsheet.com/function/if

    IF Function

    Evaluates a logical expression and returns one value when true or another when false.

    Sample Usage

    IF([Due Date]1 > [Due Date]2, "Date 1 is Larger", "Date 2 is Larger")

    Syntax

    IF(logical_expression, value_if_true, [value_if_false])

    logical_expression—The expression to evaluate. Must be true or false.

    value_if_true—The value or formula to return if the logical expression is true.

    value_if_false—[optional] The value or formula to return if the logical expression is false. If omitted, a blank value is returned.

    Usage Notes

    You can nest IF functions to perform multiple logical evaluations. 

    Smartsheet reads the IF statements in the formula from left to right, displaying a value based on the first expression to evaluate to true. When nesting IF functions, the optional return_if_false will be returned only if all logical expressions evaluate to false.

    SMARTSHEET EXPERT CONSULTANT & PARTNER

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

    W: www.workbold.com | E:[email protected] | P: +46 (0) - 72 - 510 99 35

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

  • Tina Ciak
    Tina Ciak ✭✭✭✭

    This worked perfectly! Thank you! It was making me crazy on Friday. 

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Excellent!

    Happy to help!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

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

    W: www.workbold.com | E:[email protected] | P: +46 (0) - 72 - 510 99 35

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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!