# SUM(CHILDREN)

Options

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:

1. The product is in our database - in which case the VLOOKUP work
2. The product isn't in our database - in which case it says there is no price in the system
3. 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.

• ✭✭✭✭✭✭
Options

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

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.

• ✭✭✭✭✭✭
Options

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

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.

• ✭✭✭✭✭
Options

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))

• Options

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!!

• ✭✭✭✭✭✭
Options

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!