#1   Report Post  
FLKULCHAR
 
Posts: n/a
Default sumproduct

Why is:


=SUMPRODUCT(--(F1:F5={2,3,4,5}))

equivalent to the number of times 2,3,4, or 5 occur within the range??

thanks,

flkulchar
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

In G1 enter & copy down:

=OR(F1=2,F1=3,F1=4,F1=5)

In H1 enter & copy down:

=--G1

or

=G1+0

which are equivalent qua effect.

Now total H1:H5 with:

=SUM(H1:H5)

FLKULCHAR wrote:
Why is:


=SUMPRODUCT(--(F1:F5={2,3,4,5}))

equivalent to the number of times 2,3,4, or 5 occur within the range??

thanks,

flkulchar


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
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 08:36 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"