+ Reply to Thread
Results 1 to 2 of 2

Finding the Average of the Top 10% of a varying sized array

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Finding the Average of the Top 10% of a varying sized array

    Hi All
    I have a list of numbers in Excel which vary in length. I want to use some VBA coding to find the top 10% of the list and then return the average of the numbers that meet that criteria. I can do it very inelegantly by recording a macro that filters and then averages, but VBA wants to reference the list as absolute. I was wondering if there were an easier way that just uses VBA?

    Many thnaks in advance

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Finding the Average of the Top 10% of a varying sized array

    Hi excelbunny,

    Welcome to the forum.

    I guess you can use Large function to get the top 10% and then you can use Average function to get the desired results easily.... so finally it would be an array formula combining both of these functions.... Upload an sample file so that I can show it to you. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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