View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default CountIf for a range with multiple criteria

=SUMPRODUCT(--($A$1:$A$4="TT"),--($B$1:$B$40))

Better to put the "TT" & "1" in cells e.g X1, X2:

=SUMPRODUCT(--($A$1:$A$4=X1),--($B$1:$B$4X2))

"Marco" wrote:

Hello. I want to make a count concerning two columns A and B.

The column A has text such as TT and TP the column B has numbers.

example
A B
TT 2
TP 5
TT 0
TT 1

I need to count how many times I have TT on columns A that the value on
column B is higher then 0

How?

Regards,
Marco