Sum of expenses of child rows in a formula row
Hi
I have a sheet wherein a column contains all the expenses that is basically generated from the sum of other cells in the same row.
This row is indented and I wanted to know if I could have the total of this in the parent of this row. Like the way it could be done in a pivot table.
The formula in the column is applied as a column formula and I'm unable to put a unique formula for the other parent rows. Is there any way I could do this?
Thank you
Best Answer
-
Hi @Shadaab
I hope you're well and safe!
You'd need to modify the formula to check if it's a parent row or similar, so different formulas are run depending on what it is.
Try something like this, and then add your other formula after.
=IF(COUNT(CHILDREN(ColumnName@row)) > 0, SUM(CHILDREN()))
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 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 @Shadaab
I hope you're well and safe!
You'd need to modify the formula to check if it's a parent row or similar, so different formulas are run depending on what it is.
Try something like this, and then add your other formula after.
=IF(COUNT(CHILDREN(ColumnName@row)) > 0, SUM(CHILDREN()))
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 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.
-
Hi @Andrée Starå, Thanks for the response, that worked out.
-
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
- 62.3K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!