View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs daddylonglegs is offline
external usenet poster
 
Posts: 287
Default Sumproduct returns value error when ref is formula

It shouldn't make any difference whether the referenced cells contain
formulas or input values, perhaps your column D contains #VALUE! error(s),
try eliminating these or perhaps

=sumproduct(--(column a ="January"),column b, column c)

I assume column a contains text and not dates



"wx4usa" wrote:

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??