View Single Post
  #5   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
gte[_2_] gte[_2_] is offline
external usenet poster
 
Posts: 8
Default #VALUE! from SUMPRODUCT

That's it :-)

Thanks,

"T. Valko" wrote in message
...
I can't explain exactly what the cause is as it relates to OFFSET but the
problem is being caused by the ROW function. ROW returns an array. Even if
it's a single element it's still an array.

So, this is what's returning the error:

OFFSET($H$58,{n},0,51,1)

This will work:

=SUMPRODUCT($I$58:$I$108,OFFSET($H$58,58-INDEX(ROW(),1),0,51,1))

--
Biff
Microsoft Excel MVP


"gte" wrote in message
...
I have a problem with SUMPRODUCT. If I use this function:

=SUMPRODUCT($I$58:$I$108;OFFSET($H$58;58-ROW();0;51;1))

I get #VALUE! error.

But if I calculate

=58-ROW()

in a new cell (K58) and uses this cell instead:

=SUMPRODUCT($I$58:$I$108;OFFSET($H$58;K58;0;51;1))

then it works fine. What is wrong with the "58-ROW()" calculation inside
the OFFSET function?


Thanks in advance,
Regards,