Counting children status

Hi!
I'm trying to count the number of children that are "Completed" using the CHILDREN formula and still cannot get it to work after searching and reviewing in the Smartsheet Community.
In a separate smartsheet, I've attempted various formulas without luck. Below makes the most sense to me out of the various formulas attempted but as it's not correct, any advice would be much appreciated!
=COUNTIF(CHILDREN({Integration Range 5}1) ="Completed")
The range mentioned is the Parent cell of the Pre-Close in the attached pic.
Thank you!
Best Answer
-
Hi @Emily T.
Hierarchy is specific to each sheet and currently the CHILDREN function needs to reference data in the current sheet and cannot be used in a cross-sheet formula.
The way I would get the information you're looking for is to add a helper column in the source sheet. I would suggest using this:
=PARENT(Task@row)
This will populate the Parent name of the Task column to all the Child rows. Now you can use this Helper Column (lets call it "Parent Name") as your criteria in the COUNTIFS function!
For example:
=COUNTIFS({Parent Name Column}, "Pre-Close", {Status Column}, "Completed")
Does that make sense?
If you're looking for all the Child Rows versus just the child rows of the Pre-Close parent, we could add a different type of helper column in your source sheet to indicate the hierarchy. Let me know if you need help with this and I'd be happy to explain further.
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Answers
-
Hi @Emily T.
Hierarchy is specific to each sheet and currently the CHILDREN function needs to reference data in the current sheet and cannot be used in a cross-sheet formula.
The way I would get the information you're looking for is to add a helper column in the source sheet. I would suggest using this:
=PARENT(Task@row)
This will populate the Parent name of the Task column to all the Child rows. Now you can use this Helper Column (lets call it "Parent Name") as your criteria in the COUNTIFS function!
For example:
=COUNTIFS({Parent Name Column}, "Pre-Close", {Status Column}, "Completed")
Does that make sense?
If you're looking for all the Child Rows versus just the child rows of the Pre-Close parent, we could add a different type of helper column in your source sheet to indicate the hierarchy. Let me know if you need help with this and I'd be happy to explain further.
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.8K Get Help
- 429 Global Discussions
- 146 Industry Talk
- 485 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 73 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!