View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Imda14u Imda14u is offline
external usenet poster
 
Posts: 6
Default Count With Criteria

Dave Peterson schreef:
=sumproduct(--(a1:a10="john"),--isnumber(b1:b10))


It works great, what I don't understand are the double dashes.
I've tried without them and the formula fails.

Also, when instead of text "john" you refer to a cell with the text
"john" it seems that you must confirm the formula with ctrl+shift+enter.
When you fill the formula down to refer to another cell with name "dave"
you get the same result as for "john", not so however when confirmed
as array.

puzzles and questions....


greets,

Sybolt