Sheet Summary COUNTIF
I'm having problems using the COUNTIF function in the newish sheet summary. Everytime I sort rows it changes the range. For example, in a summary text field I have
=COUNTIF([Column A]1:[Column A]79, =0)
After sorting by a column it becomes
=COUNTIF([Column A]29:[Column A]43, =0). Or something similar.
The sheet summary is supposed to be used for gathering metrics. But I can't use it for this intended purpose if it means no longer sorting the sheet. Anyone have advice? This can't be the way its meant to work.
Thanks!
Comments

Try this =COUNTIF([Column A]:[Column A], =0)

Thanks Ella, that solved part of it. I'm not getting random ranges anymore. But the formulas are counting the blank rows in addition to those that meet my =0 condition. Smartsheet customer support is looking for answers

I will appreciate it if you post after they looked into it and how it was resolved.

Try switching to a COUNTIFS and include additional criteria to specify not blank.
.
If you are counting how many are actually numbers equaling zero:
=COUNTIFS([Column A]:[Column A], AND(NOT(ISBLANK(@cell)), @cell = 0))
.
If you are counting unchecked boxes (or unflagged flags or anything else that uses a 1/0 for true/false)
=COUNTIFS([Column A]:[Column A], = 0, [Different Column]:[Different Column], NOT(ISBLANK(@cell)))
Just replace the [Other Column] with some column that will always have a value in the cell.
This will allow you to reference the entire column and exclude the blanks.

Paul has it 99%. COUNTIFS is throwing an incorrect argument error when using NOT(ISBLANK()) as a criteria. The documentation for the function says operators are limited to =, <, >, <>, <= and =>. Which i think may have something to do with it. The final function ended up being:
=COUNTIFS([Column A]:[Column A], 0, [Column B]:[Column B], <>"")
Where, as Paul says, Column B needs to be something that will always be nonempty.
One other note, the online documentation for COUNTIFS distinctly mentions that blank cells should not be counted when using this function. Smartsheet indicated that counting blank checkboxes was "an expected behavior". I've asked them to indicate this in the writeup of the function.

The incorrect argument error may have been thrown because you did not use an @cell reference.
I use NOT(ISBLANK(@cell)) within COUNTIFS functions on almost every single sheet I create as it is part of how I replicate the row number.
=COUNTIFS([Column Name]:[Column Name], OR(NOT(ISBLANK(@cell)), ISBLANK(@cell)))
.
Works like a charm every time as long as you use the @cell.

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!