Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

#VALUE! from SUMPRODUCT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gte - 15 Jan 2008 07:39 GMT
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,
gte - 15 Jan 2008 08:13 GMT
Forgot to tell, using version 2002 SP3.

Regards,

>I have a problem with SUMPRODUCT. If I use this function:
>
[quoted text clipped - 15 lines]
> Thanks in advance,
> Regards,
T. Valko - 15 Jan 2008 08:28 GMT
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))

Signature

Biff
Microsoft Excel MVP

>I have a problem with SUMPRODUCT. If I use this function:
>
[quoted text clipped - 15 lines]
> Thanks in advance,
> Regards,
gte - 15 Jan 2008 08:52 GMT
That's it :-)

Thanks,

>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
[quoted text clipped - 27 lines]
>> Thanks in advance,
>> Regards,
T. Valko - 15 Jan 2008 18:16 GMT
You're welcome!

Signature

Biff
Microsoft Excel MVP

> That's it :-)
>
[quoted text clipped - 31 lines]
>>> Thanks in advance,
>>> Regards,
David Biddulph - 15 Jan 2008 08:39 GMT
Was your original formula
=SUMPRODUCT($I$58:$I$108;OFFSET($H$58;58-ROW();0;51;1)) sitting in row 58?
If it wasn't, then it wouldn't return the same result.
Signature

David Biddulph

>I have a problem with SUMPRODUCT. If I use this function:
>
[quoted text clipped - 15 lines]
> Thanks in advance,
> Regards,
gte - 15 Jan 2008 08:56 GMT
Yes it is in row 58. But the problem is row(), this returns an array. Using
INDEX(ROW();1) returns an integer, then OFFSET works fine (see another
message in this thread)

Thanks for replies...

> Was your original formula
> =SUMPRODUCT($I$58:$I$108;OFFSET($H$58;58-ROW();0;51;1)) sitting in row 58?
[quoted text clipped - 18 lines]
>> Thanks in advance,
>> Regards,
Bob Phillips - 15 Jan 2008 09:07 GMT
=SUMPRODUCT($I$58:$I$108;OFFSET($H$58;58-MAX(ROW());0;51;1))

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I have a problem with SUMPRODUCT. If I use this function:
>
[quoted text clipped - 15 lines]
> Thanks in advance,
> Regards,
gte - 15 Jan 2008 09:24 GMT
Thanks for the reply

gte

> =SUMPRODUCT($I$58:$I$108;OFFSET($H$58;58-MAX(ROW());0;51;1))
>
[quoted text clipped - 17 lines]
>> Thanks in advance,
>> Regards,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.