Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Understanding the objective '--' used in SUM PRODUCT function

The double unary is never "needed". Someone discovered that
it does the same thing as multiplying the arrays......


The double unary does *not* do the same thing as multiplying the arrays


Let me rephrase that, then:

The double unary is never "needed". Someone discovered that it has the same
net effect as multiplying the arrays......

Biff

"JE McGimpsey" wrote in message
...
The double unary does *not* do the same thing as multiplying the arrays,
and that is what likely leads to the increased efficiency.

When one uses the form

=SUMPRODUCT(arr1 * arr2)

the arrays are converted to numeric arrays, then multiplied, then the
result (a single array) is passed to the SUMPRODUCT function to be
summed.

When one uses the form

=SUMPRODUCT(--arr1,--arr2)

the arrays are converted to numeric arrays, then both arrays are passed
to SUMPRODUCT to be multiplied and summed.

The end result may be the same, but it would not be surprising that a
function optimized to multiply arrays would be somewhat more efficient
than the multiplication operator passed two arrays.

Not sure what you mean about Help - neither the unary minus nor the
multiplication operator are mentioned in Help's SUMPRODUCT topic, but
both are mentioned under Calculation operators.

In article ,
"T. Valko" wrote:

The double unary is never "needed". Someone discovered that it does the
same
thing as multiplying the arrays and is slightly more efficient. What does
Help say about the double unary?


It isn't even mentioned!



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
How do I write up a controllers objective click New Users to Excel 1 March 15th 06 08:36 PM
Price Function - Difficulty in understanding the formula abhi_23 Excel Worksheet Functions 0 January 18th 06 09:41 AM
Is there any who can help in understanding the VLOOKUP function Ajay Excel Discussion (Misc queries) 1 October 26th 05 08:19 AM
Understanding Checkbox function Lori Burton Charts and Charting in Excel 1 July 25th 05 01:26 PM
Percent of Objective [email protected] Excel Discussion (Misc queries) 1 March 15th 05 08:12 PM


All times are GMT +1. The time now is 09:22 PM.

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

About Us

"It's about Microsoft Excel"