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

SUMIF for unique entries

$
0
0

I need to do a SUMIFS statement in Google Sheets but am having a hard time not double counting duplicates in the data. For example:

VolumeFlavorBatch #
6000CLMBT1000
6500CLMBT1000
7000WBGBT2000
2000CLMBT3000
3000ISMBT4000
5000CLMBT5000

I want to SUMIF the volume of all of matching flavors but only add the volume of each Batch # one time. Ideally this would count which ever volume is highest for the associated Batch # So in this instance if did a SUMIF for 'CLM' I would like to get 13500 as the answer.

I tried different variations with QUERY nested inside a SUM statement as well, but couldn't make it work. Open to any approach including using a helper column.

Thanks for the help!


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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