Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

IF OR conditions & FILTER in google sheets

$
0
0

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"))

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>