Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default =SUMPRODUCT() Question

In the formula =SUMPRODUCT(--(A2:A10=D2),--(B2:B10=E2))
What does the -- mean?

Harvey Mandel


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default =SUMPRODUCT() Question

See your question of 20 minutes or so ago.
--
David Biddulph

"Harvey" wrote in message
...
In the formula =SUMPRODUCT(--(A2:A10=D2),--(B2:B10=E2))
What does the -- mean?

Harvey Mandel



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default =SUMPRODUCT() Question

Hi,

If you are looking up numbers in 1 array and text in another you could get
errors. The double minus (double unary) converts every thing to 1's and 0's
and the error is eliminated. To see the effect select this part of the
formula and tap F9

A2:A10=D2

You will see TRUE or False depending on how it evalutes.
Click the red tick after doing this then select this part of the formula and
Tap F9

--(A2:A10=D10)

Note now how True and false have become 1(True) and 0(false)

For a professional explanation have a look here.
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Mike







"Harvey" wrote:

In the formula =SUMPRODUCT(--(A2:A10=D2),--(B2:B10=E2))
What does the -- mean?

Harvey Mandel



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default =SUMPRODUCT() Question

Hmmm, missed the previous post and I did of course mean click the red Cross

"Mike H" wrote:

Hi,

If you are looking up numbers in 1 array and text in another you could get
errors. The double minus (double unary) converts every thing to 1's and 0's
and the error is eliminated. To see the effect select this part of the
formula and tap F9

A2:A10=D2

You will see TRUE or False depending on how it evalutes.
Click the red tick after doing this then select this part of the formula and
Tap F9

--(A2:A10=D10)

Note now how True and false have become 1(True) and 0(false)

For a professional explanation have a look here.
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Mike







"Harvey" wrote:

In the formula =SUMPRODUCT(--(A2:A10=D2),--(B2:B10=E2))
What does the -- mean?

Harvey Mandel



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default =SUMPRODUCT() Question

I cannot find my earlier message which is why I resent. I appreciate all the
answers.
Harvey Mandel
"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
See your question of 20 minutes or so ago.
--
David Biddulph

"Harvey" wrote in message
...
In the formula =SUMPRODUCT(--(A2:A10=D2),--(B2:B10=E2))
What does the -- mean?

Harvey Mandel





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
I think I know how to ask this sumproduct question now: Gina[_2_] Excel Worksheet Functions 3 July 22nd 08 10:01 PM
SUMPRODUCT Question porter444 Excel Worksheet Functions 2 September 25th 07 07:06 PM
sumproduct question SteveDB1 Excel Worksheet Functions 1 September 21st 07 11:36 PM
SUMPRODUCT question Melissa Excel Discussion (Misc queries) 4 August 24th 06 10:44 AM
SumProduct Question Carl Excel Worksheet Functions 1 August 23rd 06 11:55 PM


All times are GMT +1. The time now is 05:45 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"