sumif vs sumproduct

W

ww

If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it returns
the correct value.
However if I use
sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
it returns #value. Anybody have any ideas as to what I might be doing
wrong? Thanks.
 
D

Don Guillett

try
=sumproduct(--([table.xls]sheet1!rng=A1),--[table.xls]sheet1!table)
or
=sumproduct(([table.xls]sheet1!rng=A1)*[table.xls]sheet1!table)
 
D

Duke Carey

Sumproduct() requires the two ranges to be of identical size - a 1 col
multi-row range, or a 1-row, multi column range. Is your range rng identical
in size to range table?
 
Top