Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
CountIF "No" or Blank
Hi Smartsheet community,
Trying to create a formula that counts the number of cells that are blank or have "No" in them.
It is a dropdown column with only two choices, "Yes" and "No", so I tried
=COUNTIF([ColumnName]:[ColumnName], <> "Yes"), but that gives me 0
Comments
-
COUNTIFS([ColumnName]:[ColumnName], ="No" + COUNTIFS([ColumnName]:[ColumnName], "")
-
Brett's answer should do the trick! I'll just add that your idea is good - it would at least count all of the "No" cells. The only issue is that when you're evaluating <> "YES" Smartsheet ignores blank cells. I think the only way to count those is to do what Brett suggested.
-
Brett's formula is missing a closing paranthesis.
Also, when checking for equal to, you can skip the = sign, like so.
COUNTIFS([ColumnName]:[ColumnName], "No")
To check for a blank, you can use the new @cell reference like so:
COUNTIFS([ColumnName]:[ColumnName], ISBLANK(@cell))
In some cases a non-value (a "null") may be different than a blank value.
I'm not sure if that is true in Smartsheet, but I vaguely recall seeing something that caused me to think it was.
Craig
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives