Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Summing based on matched data

$
0
0

I have an odd sum issue that's been plaguing me for a year or so and I figure it's time to get it taken care of.   I have some data that I have to sum.  I have to sum them based on the data in the first column.  Easier to explain with an example. Note that column D is what I want the result to be... columns A, B and C are the data I'm starting with.

A B C D

117 6 0 8 117 2 0 118 1 0 7 118 0 3 118 3 0 121 0 1 5 121 4 0

For the above, what I'm looking for is a total of B&C, based on the value of A...  so all the B&C values where A is 117 adds up to 8.  All the B&C values where A is 118 adds up to 7, etc.  I don't even mind if the D result is duplicated in every row...  So the cells in D being 8, 8, 7, 7, 7, 5, 5 would be fine.  I just need to be able to see what the totals are for all of the entries that start with "117" versus the totals of "118".  

I know there are lots of ways to slay this beast, but my problem is that I need it done in the way I've described... no grouping, no pivot tables, no calculations elsewhere.  I have LOTS of data that will continue to grow and this all gets exported to other places, so the formatting has to be pretty much what I have above.  

Can someone get me pointed in the right direction here?


--smthng



Viewing all articles
Browse latest Browse all 11829

Trending Articles



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