+ Reply to Thread
Results 1 to 14 of 14

removing lowest and highest values

  1. #1
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    removing lowest and highest values

    what I need for excel to automatically remove the highest and lowest TOTAL POINTS and create an average "Speed Rating" of the remaining 3 scores.

    Is it possible to get Excel to do this?
    Attached Files Attached Files
    Last edited by maco; 05-13-2009 at 05:10 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: removing lowest and highest values

    Perhaps: =TRIMMEAN(F2:F6,0.6)

  3. #3
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: removing lowest and highest values

    that dosent seem to work... what does the 0.6 do in that formula? its giving me the same outcome as doing a simple =average formula and thats not what I want... I want it to remove the highest and lowest total points and give an average if the middle three remaining total points

  4. #4
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: removing lowest and highest values

    It just happens that the average of all 5 values is the same as the average of the middle 3 values!

    0.6 is 3/5ths which just averages the middle 3 numbers out of 5

    =(SUM(F2:F6)-MIN(F2:F6)-MAX(F2:F6))/(COUNT(F2:F6)-2)

    will demonstrate this
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: removing lowest and highest values

    Perhaps:

    =(SUM(F2:F6)-MAX(F2:F6)-MIN(F2:F6))/(COUNT(F2:F6)-2)

  6. #6
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: removing lowest and highest values

    Oh right, I never thought of it being the same outcome...

    Does any one know if its possible to get excel to look at a different sheet when a different track is selected, you will need to look at the spreadsheet to understand what im talking about...

    at the moment its looking at the BV sheet for the data, but if I want it to look at a different set of data for another track would that be possible

  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: removing lowest and highest values

    assuming your sheets are "track 1" (same as column a)

    instead of =VLOOKUP($B2,bv!$A$2:$B$100,2,FALSE)

    use
    =VLOOKUP($B2,indirect(a2 & "!$A$2:$B$100"),2,FALSE)

  8. #8
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: removing lowest and highest values

    The second argument of TRIMMEAN determines the percentage of data points to exclude from the calculation. So I believe the formula should be as follows...

    =TRIMMEAN(F2:F6,2/COUNT(F2:F6))

    So, in this example, 2/COUNT(F2:F6) evaluates to 0.4 and excludes 2 data points -- highest and lowest. In this case, it just so happens that using 0.6 as the second argument returns the same result (5 x 0.6 = 3, which is rounded down to the nearest multiple of 2, and again excludes the highest and lowest values).

  9. #9
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: removing lowest and highest values

    squiggler47 I am getting the error message #REF

    do you know why this could be?

    I have just noticed it only gives the #REF error when there is more than one word in the sheet name...
    E.g - I can use "Track" but I cant use "Track 1"

    Is there a way for it to recognise more than just one word in sheet names? or should it do it any way?
    Last edited by maco; 05-13-2009 at 02:25 PM.

  10. #10
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: removing lowest and highest values

    any help please?
    sorry to bump so soon but I need it done asap.

    thanks

  11. #11
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: removing lowest and highest values

    Try replacing...

    indirect(a2 & "!$A$2:$B$100")

    with

    INDIRECT("'"&A2&"'!A2:B100")
    Last edited by Domenic; 05-13-2009 at 03:59 PM. Reason: Corrected the second reference...

  12. #12
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: removing lowest and highest values

    This is what I had first
    =VLOOKUP($B2,INDIRECT(A2 & "!$A$2:$B$100"),2,FALSE)

    I have tried the following 3 and all give a #value error
    =INDIRECT("'"&A2&"'!A2:B100")
    or
    =VLOOKUP($B2,=INDIRECT("'"&A2&"'!A2:B100"),2,FALSE)
    or
    =VLOOKUP($B2,INDIRECT("'"&A2&"'!A2:B100"),2,FALSE)

  13. #13
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: removing lowest and highest values

    =VLOOKUP($B2,INDIRECT("'"&A2&"'!A2:B100"),2,FALSE)
    The above formula should return the desired result. Can you post a sample workbook showing the error?

  14. #14
    Registered User
    Join Date
    05-13-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: removing lowest and highest values

    I would like to thank you all for your help.

    The problem has now been "Solved" through the script that Domenic posted last.

    Thank you

+ 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