+ Reply to Thread
Results 1 to 74 of 74

need function to sum top ranking items in list

Hybrid View

  1. #1
    Bob Phillips
    Guest

    Re: need function to sum top ranking items in list

    Here is an example that sums the top 32 that are not equal to 35

    =SUMPRODUCT(--(LARGE(IF(A1:A40<>35,A1:A40),ROW(INDIRECT("1:32")))))

    it is an array formula, so commit with Ctrl-Shift-Enter

    --
    HTH

    Bob Phillips

    "QuantumPion" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > How can I make a function that will sum the largest 32 items in a column
    > which meet specific criteria? For example, the largest 32 values that
    > are smaller then X, or are not #N/A? I think I want to use SUMIF, but
    > how can I format the criteria to evaluate a function for each cell?
    >
    >
    > --
    > QuantumPion
    > ------------------------------------------------------------------------
    > QuantumPion's Profile:

    http://www.excelforum.com/member.php...o&userid=23991
    > View this thread: http://www.excelforum.com/showthread...hreadid=376101
    >




  2. #2
    Harlan Grove
    Guest

    Re: need function to sum top ranking items in list

    Bob Phillips wrote...
    >Here is an example that sums the top 32 that are not equal to 35
    >
    >=SUMPRODUCT(--(LARGE(IF(A1:A40<>35,A1:A40),ROW(INDIRECT("1:32")))))
    >
    >it is an array formula, so commit with Ctrl-Shift-Enter

    ....

    If it has to be an array formula, no point using SUMPRODUCT rather than
    SUM. Also, LARGE only returns numbers, so no need for the '--' or the
    parentheses enclosing the LARGE call.

    =SUM(LARGE(IF(A1:A40<>35,A1:A40),ROW(INDIRECT("1:32"))))


  3. #3
    JE McGimpsey
    Guest

    Re: need function to sum top ranking items in list

    That fails under the OP's "not #N/A" criterion.

    In article <[email protected]>,
    "Bob Phillips" <[email protected]> wrote:

    > Here is an example that sums the top 32 that are not equal to 35
    >
    > =SUMPRODUCT(--(LARGE(IF(A1:A40<>35,A1:A40),ROW(INDIRECT("1:32")))))
    >
    > it is an array formula, so commit with Ctrl-Shift-Enter
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "QuantumPion" <[email protected]>
    > wrote in message
    > news:[email protected]...
    > >
    > > How can I make a function that will sum the largest 32 items in a column
    > > which meet specific criteria? For example, the largest 32 values that
    > > are smaller then X, or are not #N/A? I think I want to use SUMIF, but
    > > how can I format the criteria to evaluate a function for each cell?


+ 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