"Conditional" sum

  • Thread starter Thread starter davor
  • Start date Start date
D

davor

Please help. I have "input" data like this:

AA BB AA DD CC
--------------------------------------------------------------
8 10 8 8 8
10 10 10 10 8
12 8 7 12 8


Is it possible to have "output" data, summarizing all numbers for AA,
BB, CC... etc., something like this:
AA 55
BB 28
CC 24
DD 30

I have lot's of AA BB CCs and lots of values for them. If there is
some usefull formula please help me!
Thank you in advance!
 
Assume source "input" data as posted is within A1:E4,
with top row headers: AA, BB, AA, etc

Assume the headers are listed in G1 down: AA,BB,CC, etc

Put in H1:
=SUMPRODUCT(--ISNUMBER(MATCH($A$1:$E$1,G1,0))*$A$2:$E$4)
Copy down
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top