CountIf for a range with multiple criteria

M

Marco

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
 
T

Toppers

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

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

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

Marco

Hello. I couldn't put this working, but tell me, what happens if the TP has
also 0 on column B?

Regards,
Marco
 
T

Toppers

TP is ignored.

Is column B text or numberic: if text change 0 to "0".

Worked fine for me ... what result did you get?
 
T

Toppers

....numberic???? ...numeric!

Toppers said:
TP is ignored.

Is column B text or numberic: if text change 0 to "0".

Worked fine for me ... what result did you get?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top