Countif(Not blank)

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
 
T

Tyro

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top