ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SUMPRODUCT anomoly (https://www.excelbanter.com/excel-programming/446758-sumproduct-anomoly.html)

Living the Dream

SUMPRODUCT anomoly
 
Hi Guy's

Not sure if anyone else has come across this.

When using vba to set certain values within an array of values to which
I am using SumProduct to draw specific data from, if fails to calculate.

If I enter the values manually, it works fine; any thoughts as to why
there is an issue between vba value pasting and manual entering...

TIA
Mick.

joeu2004[_2_]

SUMPRODUCT anomoly
 
"Living the Dream" wrote:
When using vba to set certain values within an array of
values to which I am using SumProduct to draw specific
data from, if fails to calculate.

If I enter the values manually, it works fine; any thoughts
as to why there is an issue between vba value pasting and
manual entering...


My thoughts a we need to see a concrete example.

WorksheetFunction.SumProduct works just fine in VBA, if you use it
correctly.

The last condition is the key. You probably misunderstand how to use
WorksheetFunction.SumProduct.


joeu2004[_2_]

SUMPRODUCT anomoly
 
PS.... I wrote:
"Living the Dream" wrote:
When using vba to set certain values within an array of
values to which I am using SumProduct to draw specific
data from, if fails to calculate.

If I enter the values manually, it works fine; any thoughts
as to why there is an issue between vba value pasting and
manual entering...


My thoughts a we need to see a concrete example.

WorksheetFunction.SumProduct works just fine in VBA, if you use it
correctly.

The last condition is the key. You probably misunderstand how to use
WorksheetFunction.SumProduct.


Or you are setting the "values within an array of values" incorrectly. Your
description is ambiguous.

In any case, the point is: show us exactly what you are doing, and we can
tell you exactly what you are doing wrong.



All times are GMT +1. The time now is 08:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com