View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default How to count the number of cells not empty?

Ok, I got this from your other post:

There is a table from cell M2 to W200, which
contains names and empty cell.


So, that means the range contains only TEXT.

Try this...

=COUNTIF(M2:W200,"?*")

That will count TEXT ONLY and will *exclude* from the count any cells that
contain formula blanks ="".

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
What type of data is in the range? Is it text, numeric, both?

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
="", which is not defined as empty cell in excel, so counta function does
not
work for my case, do you have any more suggestions?
Thanks in advance for any suggestions
Eric

"Sheeloo" wrote:

Try the formula
=COUNTA(M2:W200)
in any cell outside the table.

"Eric" wrote:

I get a table from cell M2 to W200, and would like to count the number
of
cells not empty? which the cell equals to "". Does anyone have any
suggestions?
Thanks in advance for any suggestions
Eric