Thread: count
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default count

Hi,

Try this array formula, see below on how to enter array formula. Change the
range to suit.

=COUNT(IF(ISERROR(SEARCH("anul",C1:C10)),IF(C1:C10 <"",1)))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"puiuluipui" wrote:

Hi, i need to count the number of cells in column "C", but without the cell
that contains (anul).
Ex:

C
John (ed)
John E
John (anul)
Mary M
Mary (anul)
Mary (em)

resut = 4
There are only two cells containing (anul), so the result must be 4. I need
the code in cell "F1".
Can this be done?
Thanks!