How to account for blank cells in a complex formula
Current formula:
=IF(COUNT(CHILDREN()) > 0, IF(COUNTIFS(CHILDREN(), "Red") > 0, "Red", IF(COUNTIFS(CHILDREN(), "Yellow") > 0, "Yellow", IF(COUNTIFS(CHILDREN(), "Green") > 0, "Green", IF(COUNTIFS(CHILDREN(), "Blue") > 0, "Blue")))))
What is the formula for the highlighted bullet?
Thank you so much!
Answers
-
COUNT, COUNTIF, COUNTIFS all ignore blank cells. You'll probably want to try something like:
IF(OR(COUNTIFS(CHILDREN(), "Blue")>0, ISBLANK(CHILDREN()), "Green"
You'll possibly need to fiddle with that some to get it working. I don't have access to your sheet or how you've set it up.
-
Also, COUNTIFS is used for multiple "AND" conditions. A COUNTIF would suffice since you are only asking it to count 1 parameter.
Brent C. Wilson, P.Eng, PMP, Prince2
Facilityy Professional Services Inc.
http://www.facilityy.com
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
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!