count if, but not if

L

LiveUser

=COUNTIF(B$3:B3,B3)

How do I make this, =COUNTIF(B$3:B3,B3) but not if C3 is "Inbound"?

Thank you.
 
B

Bob Phillips

=IF(C3<>"Inbound",COUNTIF(B$3:B3,B3),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
L

LiveUser

Mike,

The formula did not work...

I tried a variation, but it did not work either.

=COUNTIF(B$3:B3,B3&C3"<>Inbound")
 
L

LiveUser

Thanks Bob.

Is there a way to make it so no number shows until "Outbound" is selected?
 
L

LiveUser

In C3 there is an option to choose Inbound or Outbound.

B C D
3 Orange
4 Apple Outbound 1
5 Orange Inbound
6 Orange Outbound 1
7 Orange Outbound 2
8 Apple Inbound
9 Grape
 
B

Bob Phillips

Is this what you mean?

=IF(AND(C3<>"Inbound",C3<>""),SUMPRODUCT(--($B$3:B3=B3),--($C$3:C3=C3)),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
L

LiveUser

Yes, Thank you.

Bob Phillips said:
Is this what you mean?

=IF(AND(C3<>"Inbound",C3<>""),SUMPRODUCT(--($B$3:B3=B3),--($C$3:C3=C3)),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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