+ Reply to Thread
Results 1 to 14 of 14

Average Top 90% Help

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Average Top 90% Help

    Hi Guys,

    I am looking to average the top X percent and have managed to build a formula which does this which is in cell D1 on the example worksheet.

    What I haven’t been able to manage to do and hope one of you guys can help with is to build two criteria into this. The formula is built to calculate the bottom 90% of values.

    The two criteria are in col A & B

    In col G:I i have put a little summary table with an answer I would expect to get based on this data for client 1 standard.

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Average Top 90% Help

    I think your sample answer may be a red herring?

    I have calculated it a few times and keep getting 3.4 instead of 4.1 -- could there be an error in your manual calculations?

    I do have a formula to offer, but the forum keeps blocking me from posting it as text...

    code.png

    This screenshot is the best I can do.

    It's an array formula; Confirmed with Ctrl+Shift+Enter. Paste in H2 and drag to fill.
    Last edited by eibi; 03-01-2016 at 05:01 PM.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Average Top 90% Help

    I don't come up with the same figures either.

    Perhaps I misinterpret.

    Row\Col
    G
    H
    I
    J
    1
    Standard Complex
    2
    Client 1
    5.285714
    4.789474
    In H2 :=AVERAGEIF($A$1:$A$40,$G2,$C$1:$C$40)
    3
    Client 2
    5.736842
    5.235294
    In I2 :=AVERAGEIFS($C$1:$C$40,$C$1:$C$40,"<="&PERCENTILE($C$1:$C$40,0.9),$A$1:$A$40,$G2)
    Dave

  4. #4
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Average Top 90% Help

    Hi Flameretired,


    Your formula gets the results I was expecting but it doesnt seem to take into consideration the complex/standard field.

    I have uploaded an example spread sheet. I get the same figure for complex and standard even know all the cases are set to standard.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Average Top 90% Help

    If you want to add the Standard/Complex criteria to FR's formula, paste this in H2 and drag to fill:

    Formula: copy to clipboard
    =AVERAGEIFS($C$1:$C$40,$C$1:$C$40,"<="&PERCENTILE($C$1:$C$40,0.9),$A$1:$A$40,$G2,$B$1:$B$40,H$1)

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Average Top 90% Help

    @ikeene

    Yep. Thanks for the backup. I overlooked that.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Average Top 90% Help

    This seems remarkably similar to another thread here...
    http://www.excelforum.com/showthread...55#post4328655

    If this is your thread too, (and both have similar IP's), I would ask that you stick with 1 ID.
    If that was not your, my apologies, but you have to admit, they look the same
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Average Top 90% Help

    Hi ikeene & FlameRetired

    I had a look at the formula and when I applied it to a larger data set it doesn't seem to work.

    I have attached an example. in H2 is the formula you provided and it shows 28.32 but when I work it out manually I get to 27.9

    My workings in H6:H8, basically there is 2,307 records 90% of this would leave 2,076 records when I average the 2,076 records I get 27.90

    Thanks for your time already on this.

    FDibbins - its definitely not me, not sure how IP addresses work but could it be someone else in my office building?

    Thanks
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Average Top 90% Help

    skate -- here's why your manual calculations produce a different outcome than the PERCENTILE() formula you requested in your original post:

    In your manual calculations, you are averaging the bottom 90% of the records.
    (which is 2076 of the total 2307 records)

    In your PERCENTILE formula, you are averaging all the records that fall in the bottom 90th percentile.
    (which includes all the records with a score of 47.00 or lower -- actually 2123 of the total records)

    These two options are materially different -- and a statistician (I am not one) will probably tell you it's bad practice to take the average of a percentile...
    Last edited by eibi; 03-03-2016 at 12:49 PM.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Average Top 90% Help

    Using your first example (I don't understand your second example)
    Enter in H2 and fill down and across
    Formula: copy to clipboard
    =AVERAGEIFS((IF($C$1:$C$40>PERCENTILE($C$1:$C$40,0.1),$C$1:$C$40)),$A$1:$A$40,$G2,$B$1:$B$40,H$1)

    Result:
    G
    H
    I
    1
    Standard Complex
    2
    Client 1
    4.636364
    6
    3
    Client 2
    5.444444
    6
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  11. #11
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Average Top 90% Help

    Hi Everyone

    thanks for all your input I dont know if I was clear in my original request but just to clear up my question. What I want to work out is the bottom 90% of turnaround times on cases.

    The way I would want this working out would be if I was to find the bottom 90% and there was 100 cases then it would be the average of the 90 quickest cases. if it was 500 cases it would be the quickest 450 cases

    I'm not 100% what percentiles are but this is the way I have been asked to work it out.

    Again I just wanted to say thank you to everyone whose tried to help me find a solution to this.

    Thanks

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Average Top 90% Help

    Maybe this will work for you
    Formula: copy to clipboard
    =AVERAGEIFS((IF($C$1:$C$2308<=PERCENTILE($C$1:$C$2308,0.9),$C$1:$C$2308)),$A$1:$A$2308,$G2,$B$1:$B$2308,H$1)


    Percentile is somewhat like % but not the same. If you scored the 75th percentile on an exam, that would mean that for every 100 participants, you would be number 75 in the rankings or in other words only 25 people per 100 scored better than you. The actual scores are not averaged. It is the position of your scores relative to the others. If you scored 95th percentile only 5 per every 100 scored better.

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Average Top 90% Help

    This will average the smallest 90% of the values in column C.
    Array enter this
    Formula: copy to clipboard
    =AVERAGE(IF(C1:INDIRECT("c"&COUNT(C:C))<PERCENTILE(C1:INDIRECT("c"&COUNT(C:C)),0.9),C1:INDIRECT("c"&COUNT(C:C))))


    Maybe someone can chip in with the criteria....have to leave for now.

  14. #14
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Average Top 90% Help

    Skate --

    In case you need to be able to explain (to your boss, for example) why the percentiles are not giving you same answer as the average of the bottom 90%, a brief explanation:

    A percentile takes a snapshot of the score in the 90% position. In your data set provided in post #8, above, this score was 47.0, for example

    However, there was more than one result of 47.0 -- in fact, that score appeared 57 times in the sample data you provided --

    When you chop off the top 10%, and average the remaining 90%, you actually chop off some of the 47.0 scores, and you average the remaining 2,076 scores together...

    BUT. When you average every score at-or-below the 90th percentile, you include all those results that were at or below 47.0 -- which means that you are averaging 2,123 scores together...

    I sure hope this is a helpful explanation...maybe at least you can smile knowingly next time the boss can't make his statistics match up...
    Last edited by eibi; 03-09-2016 at 05:08 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SumProduct N/A Error, Quarterly Average, Running Average, From and to Userform
    By Sorjas in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-18-2015, 07:40 PM
  2. [SOLVED] need formula to average cells but if one cell has N/A then dont average and input N/A
    By CityInspector in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 04:16 PM
  3. [SOLVED] Find Average, Return Column Header of Number Closest To Average
    By djmyers in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-07-2013, 04:19 PM
  4. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  5. Replies: 10
    Last Post: 04-25-2013, 06:12 PM
  6. displaying numbers whoes average is as close prefered average.
    By aakhan107 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-18-2012, 01:14 AM
  7. The rank of average ranks excluding empty cells but including their average.
    By Terminal45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 03:44 AM

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