Sumproduct returns value error when ref is formula

W

wx4usa

I am using sumproduct to build a report.

The referenced column has a formula in it. Sumproduct returns a value
error message since there is a formula in the referenced cells.

Example:

Column A Month (entered)
Column B Sales (entered)
Column C Profit Percent (entered)
Column D Profit dollars (results given by formula, column B * column
C)

Here is the problem
=sumproduct((column a=January)*(column d)) This returns Value error
because column D is a formula. If i enter the column D numbers it
calculates fine


=sumproduct((column a =January)*(columnb)) Works fine because column B
is entered and not a formula

Help??
 
D

Don Guillett

I just tested this where col L value is the result of a formula. Perhaps
your Jan needs to be "Jan"
=SUMPRODUCT((J1:J11="jan")*L1:L11)
 
R

Ragdyer

The asterisk form of Sumproduct() will return a #VALUE! error if *ANY* cell
in the referenced total column (Column D) is *not* a number.

This includes nulls ( "" ).

So, if your formulas look something like this:

=IF(B2*C2=0,"",B2*C2)

You will get that #VALUE! error.

Try these formulas, and see what happens:

=SUMIF(A2:A100,"jan",D2:D100)

=SUMPRODUCT(--(A2:A100="Jan"),D2:D100)
 

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

Sumproduct formula 3
Sumproduct 9
Sumproduct;3 criteria 5
Sumproduct, countif and format? 0
Sumproduct mmddyyy just the month? 2
sumproduct value error 4
sumproduct including empty cells 2
#div/0! Error 6

Top