COUNTIF Function
This seems so easy but mine won't work no matter what I try. I am trying to obtain a percentage of "yes" answers for the CHILDREN.
I want the calculation in my PARENT Row but to only calculate the CHILDREN.
All my attempts show up as this. What am I doing wrong??
Best Answer
-
If you are also wanting to include blanks in the overall calculation...
=COUNTIFS(CHILDREN(), "Yes") / COUNTIFS(CHILDREN(), OR(@cell = "Yes", @cell <> "Yes"))
If you are only including Yes and No in the overall calculation and excluding blanks, then this should work:
=COUNTIFS(CHILDREN(), "Yes") / COUNTIFS(CHILDREN(), OR(@cell = "Yes", @cell = "No"))
Answers
-
If you are also wanting to include blanks in the overall calculation...
=COUNTIFS(CHILDREN(), "Yes") / COUNTIFS(CHILDREN(), OR(@cell = "Yes", @cell <> "Yes"))
If you are only including Yes and No in the overall calculation and excluding blanks, then this should work:
=COUNTIFS(CHILDREN(), "Yes") / COUNTIFS(CHILDREN(), OR(@cell = "Yes", @cell = "No"))
-
You are so smart! Thank you Thank You Thank You!! I appreciate you Paul Newcome!
-
Hahaha. Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!