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
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 454 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!