SumProduct problem

R

robot

Hello,

One of the ranges I use in my sumproduct formula includes cells with formula
like

=IF(A1=0, "", A1)

The sumproduct returns a #VALUE! error whenever the cell A1 is 0, otherwise
it works fine.

How to deal with the problem by modifying the sumproduct ?
(The formula IF(A1=0, "", A1) is fixed and cannot be modified)

Any suggestions would be appreciated. I use Excel XP. Thanks.
 
J

JasonP CCTM LV

Could it be that the possible result in that particular cell could be blank?

The way you have this formula set it will only fill in the cell if A1 is 0,
otherwise there will be nothing.
 
D

daddylonglegs

Presumably the range with those formulas is the "sum range". Assuming you
have a formula like

=SUMPRODUCT((A1:A10="x")*(B1:B10="y")*C1:C10)

try changing syntax to

=SUMPRODUCT((A1:A10="x")*(B1:B10="y"),C1:C10)

Note , instead of *
 
R

robot

That is exactly what I missed. I should have posted my formula.

Thanks so much! You guys are great!


daddylonglegs said:
Presumably the range with those formulas is the "sum range". Assuming you
have a formula like
x> =SUMPRODUCT((A1:A10="x")*(B1:B10="y")*C1:C10)
 

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


Top