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

Google Sheets sum values for unique cells in single column and multiple IF conditions

$
0
0

My data:

A   B   C       DD   150 hash123 2/3/2023D   200 hash999 1/3/2023D   200 hash999 1/3/2023E   250 hash321 1/2/2023E   265 hash954 1/2/2023D   344 hash004 9/5/2022B   434 hash075 8/5/2022A   975 hash749 5/5/2022C   513 hash304 1/5/2022B   454 hash926 2/5/2021

For only the unique values in column C, I want to SUM the associated value of the same row in column B, if the value in column A is "D" and the date in column D is within the last 3 months.

So in the above that would be: 150 + 200 = 350.

I was working with COUNTIFS=COUNTIFS(D:D,">="&EDATE(TODAY(),-3),$A:$A,"D"), but I think I need to combine it somehow with a =query(unique(C:C),...) but I don't know if and how.

I already checked here, but that just counts the total unique values. And here, but that does not use unique.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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