![]() |
sumif vs sumproduct
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) -- Don Guillett SalesAid Software "ww" wrote in message ... 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. |
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? "ww" wrote: 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. |
All times are GMT +1. The time now is 09:09 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com