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?
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?
Last edited by maco; 05-13-2009 at 05:10 PM.
Perhaps: =TRIMMEAN(F2:F6,0.6)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
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
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!
Perhaps:
=(SUM(F2:F6)-MAX(F2:F6)-MIN(F2:F6))/(COUNT(F2:F6)-2)
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
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)
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).
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.
any help please?
sorry to bump so soon but I need it done asap.
thanks
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...
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)
The above formula should return the desired result. Can you post a sample workbook showing the error?=VLOOKUP($B2,INDIRECT("'"&A2&"'!A2:B100"),2,FALSE)
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks