+ Reply to Thread
Results 1 to 4 of 4

need help with sumproduct

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    need help with sumproduct

    On the attached spreadsheet, I'm trying to use a formula to sum the top 2 values for each Name.
    I know how to sum the top 2 values using an array. This formula will sum the top 2 values within a range, but i'm trying to sum the top 2 per name.
    So, on the spreadsheet attached, the answer should be 477 to sum the top 2 for Joe. I have a feeling this one is going to be complicated.

    =SUM(LARGE(TheRange,ROW(INDIRECT ("1:2"))))
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: need help with sumproduct

    Try this array formula**:

    =SUM(LARGE(IF(A2:A11=F2,B2:B11),{1,2}))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Note that in the sample file, cell F2 contains a trailing space character: bob[space]
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: need help with sumproduct

    perfect! thank you for your help!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: need help with sumproduct

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  2. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  3. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  4. Subtract Sumproduct from a sumproduct
    By Prcntrygrl in forum Excel General
    Replies: 6
    Last Post: 01-17-2011, 02:34 PM
  5. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 AM

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