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 / Worksheet Functions / December 2005

Tip: Looking for answers? Try searching our database.

Sumproduct

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PA - 31 Dec 2005 13:11 GMT
A brief explanation would be appreciated:
What is the difference between
=sumproduct((A2:A100),(B2:B100))
versus
=sumproduct((A2:A100)*(B2:B100))

I have been reading about the many uses of this function, and can not figure
this out

Thanks
Paul
Bob Phillips - 31 Dec 2005 13:43 GMT
Paul,

The first formula lets the function multiply the two arrays together, as SP
was designed to do.

The second multiples the two arrays by use of the * operator and passes the
resultant array to function as a single array, which SP can simply SUM the
elements, so it does not use the product part of SP, just the SUM part. In
that respect, it is redundant.

The operators in SUMPRODUCT are usually used when conditional tests are
introduced so as to resolve TRUE/FALSE arrays to 1/0 arrays that can be
summed.

Have you see this page http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Signature

HTH

RP
(remove nothere from the email address if mailing direct)

> A brief explanation would be appreciated:
> What is the difference between
[quoted text clipped - 7 lines]
> Thanks
> Paul
PA - 31 Dec 2005 14:27 GMT
Thank you Bob.  I believe the third paragraph explained it perfectly.

> Paul,
>
[quoted text clipped - 24 lines]
> > Thanks
> > Paul
 
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



©2009 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.