True count of Children(), not just non blanks
Doing project roll up and trying to use the formula below to roll up a complete status.
=IF(COUNTIF(CHILDREN(), "Complete") = COUNT(CHILDREN()), "Complete", "Not")
However, blank cells do not contribute to the COUNT(CHILDREN()), thus if there are three children and someone deletes all values in 3 cells or any non "Complete", then the formula returns "Complete" because all rows with values does in fact equal the count of children.
How can I return the count of children regardless of blank cells?
Best Answer
-
Instead of comparing to the count of children, you would compare to the count of children that are blank or not blank.
Change
COUNT(CHILDREN())
to
COUNTIFS(CHILDREN(), OR(@cell <> "", @cell = ""))
Answers
-
Instead of comparing to the count of children, you would compare to the count of children that are blank or not blank.
Change
COUNT(CHILDREN())
to
COUNTIFS(CHILDREN(), OR(@cell <> "", @cell = ""))
-
That did the trick. I also used the count from another column that could not be blank...
COUNT(CHILDREN(d@row))
-
Happy to help. 👍️
I have done that too, but I have also inadvertently created circular references doing that. Haha. That's why I have tried to get into the habit of keeping it as tight as I can.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!