Counting Children using OR?
Jamila
✭✭✭✭
I have this formula: =COUNTIF(ANCESTORS([Schedule Health]@row), <>"Green"). It was used to count the number of children of a parent row under the Health column if health was green. I now wish to edit the formula so that it counts the number of children if health is green or blue. How can I do so? I've looked up OR but I do not see examples that use "<>".
Tags:
Answers
-
To count for "green" or "green"/"blue", you are going to want to use the = instead of the <>. <> means "not equal to". Additionally, the ANCESTORS function will look at parent rows. To count children, you would want to use the CHILDREN function.
=COUNTIFS(CHILDREN([Schedule Health]@row), OR(@cell = "Green", @cell = "Blue"))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!