Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
an an is offline
external usenet poster
 
Posts: 37
Default Sum serie with condition

Hi!

I have

A B C D E F
1 Name Value Name Value Name Value
2 A 6 B 5 B 7
3 B 7 C 9 A 8
4 C 9 A 7 A 7
5 A 8 A 6 C 6

I would like Sum all values in block A2:F5 where corresponding Name is A
In this case: A=42

For another words:
Sum(B2:B5) where (A2:A5)=A +
Sum(D2:D5) where (C2:C5)=A+
Sum(F2:F5) where (E2:E5)=A

Thanks in advance.
an
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sum serie with condition

=SUMPRODUCT((A2:A5="A")*(B2:F5))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"an" wrote in message
...
Hi!

I have

A B C D E F
1 Name Value Name Value Name Value
2 A 6 B 5 B 7
3 B 7 C 9 A 8
4 C 9 A 7 A 7
5 A 8 A 6 C 6

I would like Sum all values in block A2:F5 where corresponding Name is A
In this case: A=42

For another words:
Sum(B2:B5) where (A2:A5)=A +
Sum(D2:D5) where (C2:C5)=A+
Sum(F2:F5) where (E2:E5)=A

Thanks in advance.
an



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
an an is offline
external usenet poster
 
Posts: 37
Default Sum serie with condition

Sorry Bob but return #VALUE!
Thanks.
an

"Bob Phillips" wrote:

=SUMPRODUCT((A2:A5="A")*(B2:F5))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"an" wrote in message
...
Hi!

I have

A B C D E F
1 Name Value Name Value Name Value
2 A 6 B 5 B 7
3 B 7 C 9 A 8
4 C 9 A 7 A 7
5 A 8 A 6 C 6

I would like Sum all values in block A2:F5 where corresponding Name is A
In this case: A=42

For another words:
Sum(B2:B5) where (A2:A5)=A +
Sum(D2:D5) where (C2:C5)=A+
Sum(F2:F5) where (E2:E5)=A

Thanks in advance.
an




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum serie with condition

Try this:

=SUMIF(A2:E5,"A",B2:F5)

Note how the ranges are offset.


--
Biff
Microsoft Excel MVP


"an" wrote in message
...
Hi!

I have

A B C D E F
1 Name Value Name Value Name Value
2 A 6 B 5 B 7
3 B 7 C 9 A 8
4 C 9 A 7 A 7
5 A 8 A 6 C 6

I would like Sum all values in block A2:F5 where corresponding Name is A
In this case: A=42

For another words:
Sum(B2:B5) where (A2:A5)=A +
Sum(D2:D5) where (C2:C5)=A+
Sum(F2:F5) where (E2:E5)=A

Thanks in advance.
an



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
an an is offline
external usenet poster
 
Posts: 37
Default Sum serie with condition

Ok, TV.

Work fine.

Thank you very much.
an

"T. Valko" wrote:

Try this:

=SUMIF(A2:E5,"A",B2:F5)

Note how the ranges are offset.


--
Biff
Microsoft Excel MVP


"an" wrote in message
...
Hi!

I have

A B C D E F
1 Name Value Name Value Name Value
2 A 6 B 5 B 7
3 B 7 C 9 A 8
4 C 9 A 7 A 7
5 A 8 A 6 C 6

I would like Sum all values in block A2:F5 where corresponding Name is A
In this case: A=42

For another words:
Sum(B2:B5) where (A2:A5)=A +
Sum(D2:D5) where (C2:C5)=A+
Sum(F2:F5) where (E2:E5)=A

Thanks in advance.
an






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum serie with condition

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"an" wrote in message
...
Ok, TV.

Work fine.

Thank you very much.
an

"T. Valko" wrote:

Try this:

=SUMIF(A2:E5,"A",B2:F5)

Note how the ranges are offset.


--
Biff
Microsoft Excel MVP


"an" wrote in message
...
Hi!

I have

A B C D E F
1 Name Value Name Value Name Value
2 A 6 B 5 B 7
3 B 7 C 9 A 8
4 C 9 A 7 A 7
5 A 8 A 6 C 6

I would like Sum all values in block A2:F5 where corresponding Name is
A
In this case: A=42

For another words:
Sum(B2:B5) where (A2:A5)=A +
Sum(D2:D5) where (C2:C5)=A+
Sum(F2:F5) where (E2:E5)=A

Thanks in advance.
an






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
max data serie WG Charts and Charting in Excel 9 June 25th 07 03:19 PM
Hide and unhide a serie matelot Charts and Charting in Excel 3 May 9th 07 01:26 PM
Format serie of numbers Norm Gregoire Excel Worksheet Functions 5 February 12th 07 04:18 PM
Filling / Extending serie Eric Excel Discussion (Misc queries) 2 September 8th 05 08:41 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM


All times are GMT +1. The time now is 06:54 PM.

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

About Us

"It's about Microsoft Excel"