+ Reply to Thread
Results 1 to 2 of 2

sumproduct

Hybrid View

  1. #1
    FLKULCHAR
    Guest

    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. #2
    Aladin Akyurek
    Guest

    Re: sumproduct

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1