How to od a combined IF and AND in a matrix formula

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

Guest

Hi,

What I want to do is counting a sum based on fulfilment of two criterias

=SUM(IF(AND(A1:A10=F1;B1:B10=F2);SUM(C1:C10))

Regards

murphy
 
Hi

=SUMPRODUCT(--(A1:A10=F1);--(B1:B10=F2);C1:C10)


Arvi Laanemets
 
Here are two options:

The count of all C's that fullfill the A and B criterias.
=SUMPRODUCT((A1:A10=F1)*(B1:B10=F2))

The sum...
=SUMPRODUCT((A1:A10=F1)*(B1:B10=F2)*(C1:C10))

Hope it helped
Ola Sandström
 

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

Back
Top