+ Reply to Thread
Results 1 to 3 of 3

Averaging only some numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2008
    Location
    San Antonio, TX
    Posts
    5

    Averaging only some numbers

    Say you had the following list of 10 numbers:

    439.0
    446.0
    435.5
    435.0
    441.0
    444.5
    449.5
    444.5
    447.5
    440.0

    You wish to average the list excluding the two highest and two lowest values (average the 6 median values).

    That I can do. However, I need to do this MANY times over on multiple worksheets in multiple files and would like to avoid doing it by hand each time. Also, the values need to remain in their original order on screen.

    I was thinking some method of sort, select, average, unsort. Started to make a macro using filter->sort, but dont have that option since Im on 2002 Pro.

    Any ideas?

    Thank you,
    Brian

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Averaging, excluding high and low values.

    With your posted list in A1:A10

    Try the TRIMMEAN function

    B1: =TRIMMEAN(A1:A10,4/COUNT(A1:A10))

    In this section: 4/COUNT(A1:A10)
    we're calculating the total percentage of high and low values to exclude.
    The function divides that percent equally between high and low values.

    With the sample data, the formula returns: 442.5

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    06-27-2008
    Location
    San Antonio, TX
    Posts
    5
    SWEET! That is exactly what I was looking for! Problem solved.

    Thank you!

+ 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