+ Reply to Thread
Results 1 to 7 of 7

Mean of Highest 20% of list of numbers when list of numbers may vary?

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Newcastle, England
    MS-Off Ver
    365
    Posts
    4

    Mean of Highest 20% of list of numbers when list of numbers may vary?

    Hello,

    I'm an trying to create a formula which will calculate the mean of the highest 20% of a list of numbers. The problem I have is that depending upon earlier formula's, the number of numbers which need to be taking into account within the list vary.

    For example:-

    If I have a list such as:-

    Cell Number Value In Cell
    1 1
    2 2
    3 3
    4 N/A
    5 5
    6 0
    7 0
    8 8
    9 9
    10 10

    The "N/A" values must not be included and the "0" Values must also not be included. So I need to identify the highest 20% of the cells with only the valid values (i.e. excluding N/A and 0) which need to be automatically discounted.

    I'm finding it hard to get my head round it, so what I have written above is probably as clear as mud.

    Any help would be appreciated.

    Many thanks,

    Andrew

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Mean of Highest 20% of list of numbers when list of numbers may vary?

    Try


    =AVERAGE(IF(B1:B1000>0,IF(B1:B1000>=INT(LARGE(B1:B1000,COUNT(B1:B1000)*0.2)),B1:B1000)))

    Entry with Ctrl+Shift+Enter

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Mean of Highest 20% of list of numbers when list of numbers may vary?

    Hi

    You can try the array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Mean of Highest 20% of list of numbers when list of numbers may vary?

    As per the data out of 7 numbers 1.4 are to be taken for mean. In such case what number is to be taken 1 or 2.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Mean of Highest 20% of list of numbers when list of numbers may vary?

    Modified the formula ,,


    =AVERAGE(IF(($A$1:$A$1000>0)*($A$1:$A$1000>=LARGE($A$1:$A$1000,INT(COUNT($A$1:$A$1000)*0.2))),$A$1:$A$1000))

  6. #6
    Registered User
    Join Date
    04-29-2015
    Location
    Newcastle, England
    MS-Off Ver
    365
    Posts
    4

    Re: Mean of Highest 20% of list of numbers when list of numbers may vary?

    Thanks all,

    I will give the formula a try and let you know how I get on.

    Regards,

    Andrew

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Mean of Highest 20% of list of numbers when list of numbers may vary?

    Thank you: would appreciate any feedback.

+ 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. [SOLVED] re-numbering a list of numbers based on another list of numbers to get a sequential order
    By ryan.wherry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-10-2014, 03:27 PM
  2. Finding the next highest value in a list of numbers
    By miisstina in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2014, 11:34 PM
  3. Replies: 2
    Last Post: 06-26-2012, 10:01 AM
  4. Adding the 17 highest numbers in a list
    By BlahBlahBlahBlahBlah in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2012, 05:17 AM
  5. Replies: 4
    Last Post: 11-06-2011, 12:06 PM
  6. Picking 5 highest/lowest numbers from a list
    By johnexceljohn in forum Excel General
    Replies: 25
    Last Post: 07-23-2009, 05:59 PM
  7. Highest three numbers in a list
    By Fred Smith in forum Excel General
    Replies: 4
    Last Post: 04-23-2005, 12:07 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