#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Sumproduct

Question: Can someone explain the sumproduct function? when would you use
it? what are the advantages/disadvantages of using this function.

Naraine


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Sumproduct

http://www.xldynamic.com/source/xld.SUMPRODUCT.html


--
Regards,

Peo Sjoblom



"Naraine Ramkirath" wrote in message
...
Question: Can someone explain the sumproduct function? when would you use
it? what are the advantages/disadvantages of using this function.

Naraine




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default Sumproduct

Basically it sums up true/false statements

So something like =SUMPRODUCT((A1:A10="red")*(B1:B10="blue"))

This breaks down simply to

If A1 = Red, check if B1 = Blue
If A2 = Red, check if B2 = Blue

If A1 = Red and B1 = Blue then it is True = 1

So it counts how many times it's true.

"Naraine Ramkirath" wrote:

Question: Can someone explain the sumproduct function? when would you use
it? what are the advantages/disadvantages of using this function.

Naraine



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Sumproduct

Basically it sums up true/false statements

Not really -

It multiplies arrays together, then sums the resulting array.

IF you happen to use conditional statements that return TRUE/FALSE, and
coerce them to numbers (1/0) either by using a math operator (in which
case the multiplication happens before the result is passed to
SUMPRODUCT), or by explicitly coercing, and useing the SUMPRODUCT
syntax, e.g.:

=SUMPRODUCT(--(A1:A10="red"),--(B1:B10="blue"))

then it can be used in the way you say.

But it's far more useful than just summing true/false.



In article ,
AKphidelt wrote:

Basically it sums up true/false statements

So something like =SUMPRODUCT((A1:A10="red")*(B1:B10="blue"))

This breaks down simply to

If A1 = Red, check if B1 = Blue
If A2 = Red, check if B2 = Blue

If A1 = Red and B1 = Blue then it is True = 1

So it counts how many times it's true.

"Naraine Ramkirath" wrote:

Question: Can someone explain the sumproduct function? when would you use
it? what are the advantages/disadvantages of using this function.

Naraine



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 sanders Excel Discussion (Misc queries) 2 August 9th 06 11:05 AM
SUMPRODUCT, or something else entirely? MeMe Excel Discussion (Misc queries) 7 August 9th 06 11:02 AM
using sumproduct hankinator Excel Worksheet Functions 2 August 5th 06 05:40 PM
Help with SUMPRODUCT? Gazzr Excel Worksheet Functions 4 June 30th 06 02:16 AM
Sumproduct................. Kstalker Excel Worksheet Functions 8 September 12th 05 11:04 PM


All times are GMT +1. The time now is 07:48 AM.

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"