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
Check out the Formula Handbook template!