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.
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.
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.
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.![]()
Try:
=SUMPRODUCT(SMALL(A1:A10,ROW(INDIRECT("1:"&MIN(7,COUNT(A1:A10))))))
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
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.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks