View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Sandy Mann Sandy Mann is offline
external usenet poster
 
Posts: 2,345
Default Counting non-blank cells

Peo Sjoblom" wrote in message
... One way

=SUMPRODUCT(--(LEN(A1:A10)0))


Doesn't that return 0 for cells with "" in them?

I was going to post:

=COUNTBLANK(A1:A10)-COUNTIF(A1:A10,"*")

or

=COUNTIF(A1:A10,"=")

or the array entered:

=SUM(--ISBLANK(A1:A10))

But I was trying to work out if Harlan would come along and point out where
they would fail as well.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk