Countif(Not blank)

  • Thread starter Thread starter David
  • Start date Start date
D

David

Trying to count cells in the indicated cell that are not blank. This is what
I tried, but it still counts blank cells.

=(COUNTIF(AB4,"<>""")+COUNTIF(AG4,"<>""")+COUNTIF(AL4,"<>""")+COUNTIF(AQ4,"<>"""))

Thanks
 
To work, your formula would have to be

=COUNTIF(AB4,"<>"&"")+COUNTIF(AG4,"<>"&"")+COUNTIF(AL4,"<>"&"")+COUNTIF(AQ4,"<>"&"")

However, as Fred said, you can use the simpler

=COUNTIF(AB4,"<>")+COUNTIF(AG4,"<>")+COUNTIF(AL4,"<>")+COUNTIF(AQ4,"<>")

Note that there is no need for parentheses around the whole formula

Tyro
 
Back
Top