I need help with the right "IF" or SUM IF formula
I want the formula to do a few things.
1  Check to see if the row has CHILDREN and if it is a "Rollover PO"
I have a helper column that is "CHECKED" if it is a parent I also have a column for "Rollover PO"
2  If both are checked THEN I want the formula to SUM the CHILDREN in column [Total PO Spend]
3  If the column [Rollover PO] is not checked, I want the the formula to return the value in column [Invoice Amount] in the same row.
My attempts continue to return an UNPARSIBLE result. Am I asking too much or do I have the formula all wrong?
=IF(AND([Parent]@row, [Rollover PO]@row, 1), SUM([Total PO Spend]CHILDREN()),IF([Rollover PO]@row, 0, [Invoice Amount]@row))
Thanks,
Michael
Best Answer

Hey @M Scrog
Just a few adjustments to get the syntax right in the formula.
=IF(AND([Parent]@row=1, [Rollover PO]@row=1), SUM(CHILDREN([Total PO Spend]@row)),IF([Rollover PO]@row= 0, [Invoice Amount]@row))
Does this give you the expected results?
Kelly
Answers

Hey @M Scrog
Just a few adjustments to get the syntax right in the formula.
=IF(AND([Parent]@row=1, [Rollover PO]@row=1), SUM(CHILDREN([Total PO Spend]@row)),IF([Rollover PO]@row= 0, [Invoice Amount]@row))
Does this give you the expected results?
Kelly

Thank you @Kelly Moore ! It worked beautifully!
Michael
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 61.2K Get Help
 320 Global Discussions
 197 Industry Talk
 415 Announcements
 4.2K Ideas & Feature Requests
 126 Brandfolder
 153 Just for fun
 124 Community Job Board
 441 Show & Tell
 26 Member Spotlight
 1 SmartStories
 276 Events
 34 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!