#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PA
 
Posts: n/a
Default Sumproduct

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sumproduct

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

--

HTH

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


"PA" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PA
 
Posts: n/a
Default Sumproduct

Thank you Bob. I believe the third paragraph explained it perfectly.

"Bob Phillips" wrote:

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

--

HTH

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


"PA" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"