Need help with using SUM/SUMIF function along with Hierarchy

Could someone please help by pointing out what is wrong with this function? I would like row 1 to show the total of row 2 and row 7. (i.e. when the Hierarchy level is 1)
=SUMIF([PO Amount]1:[PO Amount]10, [Project Hierarchy]@row, 1)
Here is the screenshot of my Smartsheet data source
I have a function in row 2 and row 7 that works just fine. it is =SUM(CHILDREN([PO Amount]7:[PO Amount]9)).
Thanks in advance.
Best Answers
-
use =SUM(CHILDREN()) formula on parent row and it should show you the desired sums.
-
=SUMIF([PO Amount]1:[PO Amount]10, [Project Hierarchy]@row = 1)
Such a little thing. needs to be = 1 instead of , 1 at the end.
Answers
-
use =SUM(CHILDREN()) formula on parent row and it should show you the desired sums.
-
=SUMIF([PO Amount]1:[PO Amount]10, [Project Hierarchy]@row = 1)
Such a little thing. needs to be = 1 instead of , 1 at the end.
-
Thank you @Ameya Athalye. It worked! :-)
-
Awesome!
-
Thank you @Matt C. for pointing out the error :-) I corrected the function but got CIRCULAR REFERENCE error. Perhaps I had used other functions in the same row. However I was able to get to the desired state just by using =SUM(CHILDREN()).
Thank so much for prompt inputs!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!