sum based on 3 critaria from 2 columns

  • Thread starter Thread starter freebee
  • Start date Start date
F

freebee

Hi, how to sum A1:A10 if B1:B10=critaria 1 and C1:c10=critaria 2 and critaria
3?
Thanks.
 
=SUMPRODUCT(--(B1:B10="critaria 1"),--(C1:C10="critaria 2"),(A1:A10)) +
SUMPRODUCT(--(B1:B10="critaria 1"),--(C1:C10="critaria 3"),(A1:A10))

I hope you meant C1:C10 = critaria 2 OR critarais 3 in a given cell

In 2007
SUMPRODUCT(--(B1:B10="critaria 1"),--(C1:C10={"critaria 2","critaria
3"}),(A1:A10))
 
What are the specific criteria?
C1:c10=critaria 2 and critaria 3

A cell *value* can't be *equal to* more than 1 criteria. Maybe you meant:

C1:C10=criteria 2 *or* criteria 3
 
try
=sumproduct((b1:b10=1)*(c1:c10={"a","b"})*a1:a10)
or
=sumproduct(--(b1:b10=1),--(c1:c10={"a","b"}),a1:a10)
 

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