Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel - Count all non-blank cells, excluding empty string

Tags:

excel

If I use COUNTA(range), it counts cells with the empty string (""). How do I avoid this? COUNTIFS(range,"<>"&"") doesn't seem to work.

like image 221
dashnick Avatar asked Mar 15 '16 18:03

dashnick


1 Answers

For column A, cells A1 through A100 try:

=SUMPRODUCT(--(A1:A100<>""))
like image 91
Gary's Student Avatar answered Oct 01 '22 06:10

Gary's Student