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

Sum up all values in a column, except for rows with a checked box in another column

$
0
0

I've got the following data:

Google Sheets data

And beneath the last visible cell on column C, I want to sum up all values in the cells, but only if their corresponding value on column B (the "Taxed" checkbox) is set to false.

I tried this formula:

=SUM(INDEX(QUERY(B2:C11, "WHERE B = FALSE" , 1), , 2))

But it doesn't work well. It gives me $169.30, but it should be $115.23.

Is there any way I could fix my formula, or do I need to use something else?


Viewing all articles
Browse latest Browse all 9842

Trending Articles



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