1

This is what I am trying to accomplish:

If column A = "blue", OR column A = "red" AND column B = "sold", get sum of column C

Here are my attempts:

=SUMIFS(or(C:C, A:A, "blue", A:A, "red"),B:B="sold")

Here is a filter that returns N/A because I need to put an OR statement between "blue" and "red" query.

=sum(filter(C:C,A:A="blue",A:A="red",B:B="sold")

=sum(filter(OR(C:C,A:A="blue",A:A="red"),B:B="sold")

Does not work.

SOLVED!

=sum(filter(C:C,(A:A="blue")+(A:A="red"),(B:B="sold"))

1 Answer 1

0
=SUMPRODUCT(C:C*((A:A="blue")+(A:A="red")*(B:B="sold")))

Equivalent to

=SUM(ARRAYFORMULA(C:C*((A:A="blue")+(A:A="red")*(B:B="sold"))) 
1
  • 1
    Thanks you got me on the right track with the + Mar 5 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.