+ Reply to Thread
Results 1 to 4 of 4

Formula to calculate closest 3 values out of 5 numbers.

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    7

    Formula to calculate closest 3 values out of 5 numbers.

    Hi I am doing some data analysis of drop jump heights calculated via force plate data.

    I need to create a formula which selects the middle 3 values out of 5 values (5 dropjump heights) and then averages them.

    For example in this data set: 23.45 25.67 25.28 24.92 28.5

    The closest 3 would be: 25.67 25.28 24.92

    Which I would then average.

    Many thanks for any help and suggestions!!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to calculate closest 3 values out of 5 numbers.

    You can use TRIMMEAN formula to average without "outliers". If you have data in A1:A5 this formula will average the middle 3

    =TRIMMEAN(A1:A5,0.4)

    ...or this formula will give the same result

    =AVERAGE(LARGE(A1:A5,{2,3,4}))
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Formula to calculate closest 3 values out of 5 numbers.

    Thanks very much, what does the 0.4 represent? The amount to which it is trimmed?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to calculate closest 3 values out of 5 numbers.

    Yes, if you use 0.4 or 40% then it will discard 40% of the values equally from top and bottom, so with 5 values 40% represents just the top and bottom values

+ 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] get 10 Closest Larger / Closest Smaller Values from a List
    By Auni in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 04:07 AM
  2. [SOLVED] Find the closest range of numbers and their cross values
    By Alexnf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2012, 04:12 AM
  3. Calculate series of numbers with different values
    By caldera55 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2008, 06:08 PM
  4. Calculate the closest day
    By Jim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2006, 09:45 PM
  5. Replies: 0
    Last Post: 08-25-2005, 02:37 AM

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