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
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!