+ Reply to Thread
Results 1 to 6 of 6

Total only the 7 largest scores in range of 10

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Total only the 7 largest scores in range of 10

    I need to make a score sheet that only totals the top seven out of ten scores per person. The lowest score will drop after seven are entered.

    Seems simple, but I am struggling to write the correct code. Appreciate any suggestions.
    Last edited by NBVC; 09-02-2010 at 03:51 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Toatl only the 7 largest scores in range of 10

    Try:

    =SUM(LARGE(A1:A10,{1,2,3,4,5,6,7}))

    adjust range to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Re: Total only the 7 largest scores in range of 10

    NBVC, Thanks for the quick reply. Your code works, as long as there are at least 7 scores in the range. But, I still have a dilemma.

    To be more precise, the scores are registered every week. So, if I want the sum of the scores to show from week one forward, your code doesn't return a number until I have 7 scores entered. Can the code be adjusted to recognize all the scores, and also when we get past 7, return only the 7 highest?

    I hope I am explaining this correctly.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Total only the 7 largest scores in range of 10

    Try:

    =SUMPRODUCT(SMALL(A1:A10,ROW(INDIRECT("1:"&MIN(7,COUNT(A1:A10))))))

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Total only the 7 largest scores in range of 10

    You could also try this version

    =SUM(IF(COUNT(A1:A10)>7,LARGE(A1:A10,{1,2,3,4,5,6,7}),A1:A10))
    Audere est facere

  6. #6
    Registered User
    Join Date
    07-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    82

    Re: Total only the 7 largest scores in range of 10

    NBVC, That worked well. It did exactly what I wanted to.

    daddylonglegs, I'll try your code too. It is shorter than NBVC's. But since I already have it working, it will be later.

    I can't tell you how much I appreciate the help I receive here.

    Thank you both.

+ 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