SUMIF? Or other?

K

Ken

Excel2003 ...

Range A4:A50 ... contains Text (may repeat)
Range D4:J50 .... contains numbers
Range A52:A57 ... contains "unique" Text from Range A4:A50

I want to sum all the values in Range D4:J50 when the value in Range A4:A50
matches "unique" value in Range A52:A57.

My 1st formula is ... =Sumif(A4:A50,A52,D4:J50) ... but it is not returning
value I expect.

Col A ..... Col D thru Col J

aaaa 1 - 3 - 0 - 3 - 0 - 0 - 0
bbbb 0 - 0 - 0 - 1 - 0 - 0 - 4
aaaa 2 - 1 - 2 - 0 - 1 - 1 - 1
cccc 4 - 2 - 0 - 0 - 2 - 1 - 0
aaaa 3 - 0 - 1 - 1 - 1 - 1 - 2
bbbb 1 - 2 - 1 - 2 - 0 - 2 - 1

Unique ... (return value I wish)

aaaa ... = 24
bbbb ... = 14
cccc ... = 9
etc

Thanks ... Kha
 
B

Bob Phillips

=SUMPRODUCT((A4:A50=A52)*(D4:J50))

--
---
HTH

Bob


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

Ken

Yes ... worked perfect ... (Once I got rid of a hidden character in 1 of my
cells)

Thanks for supporting these boards ... Kha
 

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

Similar Threads

Macro questoins 2
Compare Multiple Columns & Sum 1
create a "variable array?" to report data 1
Relative Macro Help on Keystrokes 9
Calculate visible cells only? 3
SUMIF? 9
Min? 3
Using the function DSUM 7

Top