Using multiple IF statements with SUMIF
Hello,
I am trying to nest IF statements, and for each true IF statement I want to use SUMIF to get the totals for a specific value. Code below if giving me an unparseable error. Could anyone help me figure out why it won't parse?
=IF([List Item or Activity]@row = "Plan Total", SUMIF(Phase:Phase, "Plan", [Total Cost]:[Total Cost], IF([List Item or Activity]@row = “Discover Total", SUMIF(Phase:Phase, “Discover", [Total Cost]:[Total Cost]))
Best Answer
-
Hi @nathan.tia
I hope you're well and safe!
Try something like this. (you were missing parenthesis and used slanted ". I assume you typed the formula in Word or similar)
=IF([List item or activity]@row = "Plan Total", SUMIF(Phase:Phase, "Plan", [Total cost]:[Total cost]), IF([List item or activity]@row = "Discover Total", SUMIF(Phase:Phase, "Discover", [Total cost]:[Total cost])))
Did that work/help?
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
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.
Answers
-
Hi @nathan.tia
I hope you're well and safe!
Try something like this. (you were missing parenthesis and used slanted ". I assume you typed the formula in Word or similar)
=IF([List item or activity]@row = "Plan Total", SUMIF(Phase:Phase, "Plan", [Total cost]:[Total cost]), IF([List item or activity]@row = "Discover Total", SUMIF(Phase:Phase, "Discover", [Total cost]:[Total cost])))
Did that work/help?
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
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.
-
That worked! Thank you so much. It was late and I must have crossed my eyes. ;P Appreciate your 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
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!