A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Conditional" sum



 
 
Thread Tools Display Modes
  #1  
Old October 10th, 2007, 01:23 PM posted to microsoft.public.excel.worksheet.functions
davor
external usenet poster
 
Posts: 2
Default "Conditional" sum

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!

  #2  
Old October 10th, 2007, 01:51 PM posted to microsoft.public.excel.worksheet.functions
Sebation
external usenet poster
 
Posts: 6
Default "Conditional" sum

try:
=SUMPRODUCT((A1:C1="AA")*A2:C4)

HTH
Sebation.G
"davor"
roups.com...
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!



  #3  
Old October 10th, 2007, 01:56 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default "Conditional" sum

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
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"davor" wrote in message
ups.com...
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!



  #4  
Old October 10th, 2007, 02:02 PM posted to microsoft.public.excel.worksheet.functions
davor
external usenet poster
 
Posts: 2
Default "Conditional" sum

On 10 list, 14:51, "Sebation" wrote:
try:
=SUMPRODUCT((A1:C1="AA")*A2:C4)

HTH
Sebation.G


Thank you, that is IT!!!
Thank you alot!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.