Count if - 2 conditions

  • Thread starter Thread starter orquidea
  • Start date Start date
O

orquidea

Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error somewhere.

Thanks in advance.
Escarly
 
COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),

It depends on how you want this to count. You're referencing a 2 column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?
 
Good catch Biff...........I was reading out of my dominant eye again........<g>

Vaya con Dios,
Chuck, CABGx3
 
Try this:

=SUMPRODUCT(--((B5:B30=4)+(C5:C30=4)>0),--(E5:E30="mama"))
 

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

Similar Threads

Using macro or other function 2
Using SumProduct in VB 4
SUMIF or COUNTIF 1
vlookup or index? 0
Desperately need help with a formula 2
CONDITIONAL COUNTING 2
Count formula 6
Conditional count of unique values 5

Back
Top