countif with criteria

F

Frank

Was trying to get countif to work with criteria but no luck. What I
want to do is get the number of rows that have 3 certain values. i.e.
the values in b3, e2, d2 to all match then count that line.



=COUNTIF('raw stats'!$A$1:$A$500,('raw stats'!$C$1:$C$500=B3)+('raw
stats'!$A$1:$A$500=E2)+('raw stats'!$B$1:$B$500=D2))
 
D

Dave R.

Frank, your question has been answered already (use sumproduct). Please
study the suggestions already given before asking the question again; and if
you are going to ask for clarification, ask it in the same thread.
 
F

Frank

Thanks, I tried sumproduct as I though too that would work but it
didn't. I must have done something wrong then

=COUNTIF('raw stats'!$A$1:$A$500,SUMPRODUCT(('raw
stats'!$C$1:$C$500=B3)*('raw stats'!$A$1:$A$500=E2)*('raw
stats'!$B$1:$B$500=D2)))
 
D

Dave R.

Refer back to other thread..

Thanks, I tried sumproduct as I though too that would work but it didn't. I must have done something wrong then

=COUNTIF('raw stats'!$A$1:$A$500,SUMPRODUCT(('raw stats'!$C$1:$C$500=B3)*('raw stats'!$A$1:$A$500=E2)*('raw stats'!$B$1:$B$500=D2)))


Dave R. wrote:

Frank, your question has been answered already (use sumproduct). Please
study the suggestions already given before asking the question again; and if
you are going to ask for clarification, ask it in the same thread.

Was trying to get countif to work with criteria but no luck. What I
want to do is get the number of rows that have 3 certain values. i.e.
the values in b3, e2, d2 to all match then count that line.



=COUNTIF('raw stats'!$A$1:$A$500,('raw stats'!$C$1:$C$500=B3)+('raw
stats'!$A$1:$A$500=E2)+('raw stats'!$B$1:$B$500=D2))
 

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