Count of Children Code not working on top row of schedule
I have code that are in all parent rows of a project schedule. This code works on all parent rows but the very top which is the full status of the project. Can you help me figure out why it is working on all other parent rows but the very top of the schedule. All other rows in the schedule are children to this row.
=IF(COUNTIF(CHILDREN(), "Complete") = COUNT(CHILDREN()), "Complete", IF(COUNTIF(CHILDREN(), "Blocked") > 0, "Blocked", IF(COUNTIF(CHILDREN(), "On Hold") > 0, "On Hold", IF(COUNTIF(CHILDREN(), "In Progress") > 0, "In Progress", IF(COUNTIF(CHILDREN(), "Complete") > 0, "In Progress", "Not Started")))))
Thank you,
Caroline
Best Answer
-
I would just click there on row two and indent it once so that it is a child of row 1.
Answers
-
Are you able to show that status column along side the same group of rows in the Primary Column so we can see the indentations?
-
here you go
-
It looks like it is working in this most recent screenshot. What about a screenshot of the sheet where it is not working?
-
now it seems to be working in all sheets, what would cause this? UGH!
This code has been here for weeks and all of a suddent it was setting everything to complete? Now all of a sudden it has fixed itself.
-
found one
-
It looks like the second row is not indented to be a child of the first row. This means that
COUNT(CHILDREN())
is generating zero and
COUNTIF(CHILDREN(), "Complete") is also generating zero.
Since zero equals zero, your first IF is technically true which is outputting the "Complete".
-
So that should be the last item on the list?
-
I would just click there on row two and indent it once so that it is a child of row 1.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!