:-( nope....
Here's my data :
first sheet
{"name","cat1","cat2","amount";"chris","PER", "TATE",10;"harry","FIN","TGBA",15;"bob","PER", "TGCD",20;"sue","FIN","TATE",25;"chris","PER", "TGBA",30;"harry","FIN","TGCD",35;"bob","PER", "TATE",40;"sue","FIN","TGBA",45;"chris","PER", "TGCD",50;"harry","FIN","TATE",55;"bob","PER", "TGBA",60;"sue","FIN","TGCD",65;"chris","PER", "TATE",70;"harry","FIN","TGBA",75;"bob","PER", "TGCD",80;"sue","FIN","TATE",85;"chris","PER", "TGCD",90;"harry","FIN","TGCD",95;"bob","PER", "TATE",100;"sue","FIN","TGBA",105}
book4 :
{"name","cat1","cat2","amount";"chris","PER", "TATE",10;"harry","FIN","TGBA",15;"bob","PER", "TGCD",20;"sue","FIN","TATE",25;"chris","PER", "TGBA",30;"harry","FIN","TGCD",35;"bob","PER", "TATE",40;"sue","FIN","TGBA",45;"chris","PER", "TGCD",50;"harry","FIN","TATE",55;"bob","PER", "TGBA",60;"sue","FIN","TGCD",65;"chris","PER", "TATE",70;"harry","FIN","TGBA",75;"bob","PER", "TGCD",80;"sue","FIN","TATE",85;"chris","PER", "TGCD",90;"harry","FIN","TGCD",95;"bob","PER", "TATE",100;"sue","FIN","TGBA",105}
=SUMPRODUCT((($A$2:$A$21 & [Book4]Sheet1!$A$2:$A$21) = "chris") * (($B$2:$B$21&[Book4]Sheet1!$B$2:$B$21) = "PER") * (($C$2:$C$21 & [Book4]Sheet1!$C$2:$C$21) = "TGCD") , ($D$2:$D$21 & [Book4]Sheet1!$D$2:$D$21))
returns 0, I'd expect an answer of 180, where the values of "Chris" and "PER" and "TGCD" from both sheets add up to 180.....
am I doing it wrong ?
thanks Aladin
Chris
> =SUMPRODUCT((($A$2:$A$21&[Book4]Sheet1!$A$2:$A$21) = "chris") * (($B$2:$B$21 & [Book4]Sheet1!$B$2:$B$21) = "PER") * (($C$2:$C$21 & [Book4]Sheet1!$C$2:$C$21) = "TGCD") , ($D$2:$D$21 & [Book4]Sheet1!$D$2:$D$21))
> returns 0, I'd expect an answer of 180, where the values of "Chris" and "PER" and "TGCD" from both sheets add up to 180.....
You meant 280 of course.
> am I doing it wrong ?
The formula above concats names and categories together thru & and SUMPRODUCT sees no "chris" but "chrischris", "harryharry", etc, no "PER" but "PERPER" etc., whence 0 -- nothing to sum.
As you said yourself, you need to compute the multiconditional sum per sheet in a cell of its own in one of the target sheets or in some other and total the results per sheet.
Aladin
=====
chrischris, PERPER, TGCDTGCD etc.... yes, I'd totally missed that, thanks Aladin !
O&O
:-)