+ Reply to Thread
Results 1 to 7 of 7

How do you find the average of a list of numbers, but exclude one number thats too high?

  1. #1
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    How do you find the average of a list of numbers, but exclude one number thats too high?

    Lets say.. I've got 4 numbers..

    1000
    1200
    1300
    2400


    The average of these four numbers is $1,475. Since 2400 is more than twice the average, I would now like to just find the average of the 3 numbers.. 1000, 1200 and 1300.
    Last edited by Tommy1005; 01-25-2013 at 12:17 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,334

    Re: How do you find the average of a list of numbers, but exclude one number thats too hig

    If all your numbers are in Column A, try this formula..

    =(SUM(A:A )- LARGE(A:A,1))/(COUNT(A:A)-1)
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: How do you find the average of a list of numbers, but exclude one number thats too hig

    Or:

    =AVERAGEIF(A:A,"<" & MAX(A:A))

    However, a more flexible solution is probably:

    =AVERAGEIF(A:A,"<" & QUARTILE(A:A,3))

    Which will exclude numbers in the 4th quartile, even if they are less than the maximum value.

    However, this gets tricky, because what you're trying to do is exclude outliers, so you're asking for a formula which can calculate an average based on numbers greater than twice the average you're trying to calculate.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,415

    Re: How do you find the average of a list of numbers, but exclude one number thats too hig

    How important is it for the averaging function to decide for you which values to exclude from the average? The way I like to approach this kind of problem is to add a column of hand entered "weights" to tell Excel which values to include. This might look something like:
    Please Login or Register  to view this content.
    I prefer to hand enter column B, so that the decision to exclude a data point is mine alone to make. As Andrew-R says, programming a robust algorithm to exclude outliers (before it has been decided that they are outliers) requires some real finesse.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: How do you find the average of a list of numbers, but exclude one number thats too hig

    Yes, I'd agree - the decision of what constitutes an outlier is often a very subjective one, and highly contextualised. It's easy for Excel to exclude the top (or bottom) x numbers from an average, but fiendishly tricky to actually have it make a rational and supportable decision on the value of x

  6. #6
    Registered User
    Join Date
    10-25-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: How do you find the average of a list of numbers, but exclude one number thats too hig

    Did you mean that 2400 was twice the next highest number in the set? In order to get double the average of the group the 2400 would have to be 4000. I have not found a way to do this in one formula as averageif is quite frustrating to work with.
    The attached spreadsheet adds another column checking if the cell to the left is less than twice the average. The weigheted average cell than uses that column in an averageif function.

    weighted_average(solution).xlsx

  7. #7
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: How do you find the average of a list of numbers, but exclude one number thats too hig

    You can get an average excluding any number that is more than twice the 2nd highest number with:

    =AVERAGEIF(A2:A5,"<" & LARGE(A2:A5,2)*2)

    But this only works if there's a single outlier (or multiple outliers with the same value).

+ 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