+ Reply to Thread
Results 1 to 7 of 7

Averaging discreet cells

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    Helston, Cornwall
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question Averaging discreet cells

    I manage data sheets for a golf society. Each week's score is posted to an individual's column. From that column (eventually 52 entries) how do I select the highest 10 (at any time in the year) and average them, showing the answer in an appropriate cell. ie - what's the formula in the answer cell? The point is that the "highest 10" will change troughout the year and I wish to show the onging results. Anbody who says this is sad is automatically disqualifed!!
    Thanks folks
    Tonymullion

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Averaging discreet cells

    Assuming your range of 52 weeks is in cells A2:A53, you could use:

    =IF(COUNT(A2:A53)<10,AVERAGE(A2:A53),(SUMIF(A2:A53,">="&LARGE(A2:A53,COUNTIF(A2:A53,">"&LARGE(A2:A53,10))))+LARGE(A2:A53,10)*(10-COUNTIF(A2:A53,">"&LARGE(A2:A53,10))))/10)

  3. #3
    Registered User
    Join Date
    11-16-2011
    Location
    Helston, Cornwall
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Averaging discreet cells

    Thankyou brokenbiscuits - certainly give it a try. just to clarify the question, in the range:-
    1 to 16, numbers 7 to 16 are the highest 10 and their average is sum(7 to 16) divided by 10. Thanks

  4. #4
    Registered User
    Join Date
    11-16-2011
    Location
    Helston, Cornwall
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Averaging discreet cells

    Hi there Brokenbiscuit. Would never have got there without outside help. Thank you. 1 small point - answer is shown as negative. Pf course, I could always simply place - in front of the formula but is there another "nore proper" solution? Thanks again pal

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Averaging discreet cells

    Hi Tonymullion,

    I always like an example to play with, so see the attached for a possible other way.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Averaging discreet cells

    Hmm, not sure why you're getting a negative - comes out at 11.5 for me.

    Have also tested the formula in Marvin's book and get the same results. See attached for confirmation. Similarly, to get the 10 lowest scores, if that's what you're after, you could use:

    =IF(COUNT(B2:B53)<10,AVERAGE(B2:B53),(SUMIF(B2:B53,"<="&SMALL(B2:B53,COUNTIF(B2:B53,"<"&SMALL(B2:B53,10))))+SMALL(B2:B53,10)*(10-COUNTIF(B2:B53,"<"&SMALL(B2:B53,10))))/10)
    Attached Files Attached Files
    Last edited by brokenbiscuits; 11-16-2011 at 11:24 AM.

  7. #7
    Registered User
    Join Date
    11-16-2011
    Location
    Helston, Cornwall
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Averaging discreet cells

    Quote Originally Posted by brokenbiscuits View Post
    Hmm, not sure why you're getting a negative - comes out at 11.5 for me.

    Have also tested the formula in Marvin's book and get the same results. See attached for confirmation. Similarly, to get the 10 lowest scores, if that's what you're after, you could use:

    =IF(COUNT(B2:B53)<10,AVERAGE(B2:B53),(SUMIF(B2:B53,"<="&SMALL(B2:B53,COUNTIF(B2:B53,"<"&SMALL(B2:B53,10))))+SMALL(B2:B53,10)*(10-COUNTIF(B2:B53,"<"&SMALL(B2:B53,10))))/10)
    I'd be dyslexic if I could spell it. It was my errant - sign what did it. Thank you for the extended reply, very useful and once again myy sincere thanks
    Regards Tonymullion
    Last edited by Tonymullion; 11-16-2011 at 12:15 PM.

+ 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