Sum serie with condition

A

an

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
 
B

Bob Phillips

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

--
---
HTH

Bob


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

an

Sorry Bob but return #VALUE!
Thanks.
an

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

--
---
HTH

Bob


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

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

Top