I am trying to use the SUM and CHILDREN Function to subtract the actual cost vs the quoted amount
I am trying to use the SUM and CHILDREN Function to subtract the actual cost vs the quoted amount to determine the profit.
I have at the top of the page
Month
Week
Request
That is the hierarchy and I need to create a formula that will tell me the profit not only for each request but for the month as well.
Please help...
Best Answers
-
Try this:
=IF(COUNT(CHILDREN()) = 0, [Quoted Amount]@row - [Actual Cost]@row, SUM(CHILDREN()))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
It is a 3 part formula.
First there is a part for child rows.
[Quoted Amount]@row - [Actual Cost]@row
Then there is a part for parent rows.
SUM(CHILDREN())
Then there is a part that says if it is a child row (it has no child rows of its own), then do the child row part, otherwise do the parent row part.
IF(COUNT(CHILDREN()) = 0, .........., ..........)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Are you able to provide some screenshots for context?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Try this:
=IF(COUNT(CHILDREN()) = 0, [Quoted Amount]@row - [Actual Cost]@row, SUM(CHILDREN()))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Oh great it worked! Thank you so much. Can you explain the formula to me. If it's not to much trouble.
-
It is a 3 part formula.
First there is a part for child rows.
[Quoted Amount]@row - [Actual Cost]@row
Then there is a part for parent rows.
SUM(CHILDREN())
Then there is a part that says if it is a child row (it has no child rows of its own), then do the child row part, otherwise do the parent row part.
IF(COUNT(CHILDREN()) = 0, .........., ..........)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Going forward, how can I better understand how to do these formulas? Is there a website that you recommend? I read what you put but is still doesn't make sense to me.
-
On the right side of the screen is a link to a formula handbook template. That should help get you started.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!