Multiple conditions on a countif

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, Using the grid below, I would like to create a count of all stores in
Rgn 1 that have sales greater than zero. Thanks for your help!

Region Store Sales
1 A 5
2 B 6
1 C 7
2 D 0
1 E 2
2 F 8
 
Here you go:

=SUMPRODUCT((A1:A10=1)*(C1:C10>0))

adjust ranges as necessary.
 
=SUMPRODUCT(--($A$2:$A$100=1),--($C$2:$C$100>0))
Change ranges to suit
 
Hi,

Try the following array formula (Ctrl+Shift+Enter)

SUM(IF((B5:B10=1)*(D5:D10>0),1,0),C5:C10)

Regards,

Ashish Mathur
 

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


Back
Top