SUM(CHILDREN)
I have a formula that is using VLOOKUP to pull an item's price from the Price List sheet. It need to account for 3 possibilities:
- The product is in our database - in which case the VLOOKUP work
- The product isn't in our database - in which case it says there is no price in the system
- The line is a PARENT row and doesn't need to show a price
The current formula: =IF(PRODUCT@row= "", "", IFERROR(VLOOKUP(PRODUCT@row, {Price List Range 3}, 5, false), "no fixed price in system")). That formula works perfectly.
THE CHALLENGE: I want the PARENT rows to show totals for its CHILDREN. I'm trying to use the SUM(CHILDREN() formula and can't crack it correctly! Can you help? I'm getting UNPARSEABLE with all the options I've tried. This is my first time using the SUM(CHILDREN) formula and I'm obviously doing it incorrectly.
Help please!
Best Answer
-
What is the formula you're trying?
Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
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 help the Community by marking it as the accepted answer/helpful. 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
-
What is the formula you're trying?
Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
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 help the Community by marking it as the accepted answer/helpful. 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.
-
Formula is =SUM(CHILDREN()).
But it won't work if all the children are not numbers. In your case I would suggest you to either change your IF statement and replace "" and "no fixed price in system" with zero, or go with a SUMIFS function like:
=SUMIFS(CHILDREN(),CHILDREN(),ISNUMBER(@cell))
-
David, great tip about making sure they include numbers. I tried the SUMIFS and think I again made a mistake so got an error, but then Andre on the side sent this one and it worked:
=IF(COUNT(CHILDREN([Primary Column]@row)) > 0, SUM(CHILDREN()), IFERROR(VLOOKUP([Primary Column]@row, $[Column4]$19:$[Column5]$36, 2, false), "not in price list"))
Thanks guys!!
-
Glad we got it working!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. 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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!