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.8K Get Help
- 437 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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!