sumif vs sumproduct

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
try
=sumproduct(--([table.xls]sheet1!rng=A1),--[table.xls]sheet1!table)
or
=sumproduct(([table.xls]sheet1!rng=A1)*[table.xls]sheet1!table)
 
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?
 

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

Back
Top