#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default sumproduct question

In the following formula what does the -- mean?
=sumproduct(--(a2:a10=d2),--(b2:b10=e2))

the spreadsheet is:

a b c d e
1 Item Qty
2 pen 5 pen 10
3 pencil 9
4 binder 9
5 pen 6
6 pen 15
7 binder 12
8 pencil 10
9 binder 6
10 pen 11

Harvey Mandel


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default sumproduct question

The double unary minus converts a Boolean TRUE or FALSE to a number 1 or 0.
--
David Biddulph

"Harvey" wrote in message
...
In the following formula what does the -- mean?
=sumproduct(--(a2:a10=d2),--(b2:b10=e2))

the spreadsheet is:

a b c d e
1 Item Qty
2 pen 5 pen 10
3 pencil 9
4 binder 9
5 pen 6
6 pen 15
7 binder 12
8 pencil 10
9 binder 6
10 pen 11

Harvey Mandel



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sumproduct question

See this:

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

--
Biff
Microsoft Excel MVP


"Harvey" wrote in message
...
In the following formula what does the -- mean?
=sumproduct(--(a2:a10=d2),--(b2:b10=e2))

the spreadsheet is:

a b c d e
1 Item Qty
2 pen 5 pen 10
3 pencil 9
4 binder 9
5 pen 6
6 pen 15
7 binder 12
8 pencil 10
9 binder 6
10 pen 11

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
SumProduct Question Gina[_2_] Excel Worksheet Functions 4 July 21st 08 04:32 PM
SUMPRODUCT question PFAA Excel Discussion (Misc queries) 13 June 2nd 08 07:58 PM
Sumproduct question Barb Reinhardt Excel Worksheet Functions 1 December 18th 06 09:04 PM
Sumproduct question RJS76 via OfficeKB.com Excel Worksheet Functions 5 February 1st 06 11:13 AM
SUMPRODUCT Question.... Jeremy Ellison Excel Worksheet Functions 5 December 9th 05 12:56 AM


All times are GMT +1. The time now is 12:28 AM.

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"