Combining multiple SUMIFS into one formula
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
-
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
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
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:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
This worked perfectly! Thank you! It was making me crazy on Friday.
-
Excellent!
Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | 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
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!