How to Find Average of Largest 3 Values from Last 5 Values in Microsoft Excel 2010

If you want to find the average of the largest 3 values from last 5 values,you can use the combination of “AVERAGE”, “INDEX”, “MATCH” & “LARGE” function to retrieve the output.

AVERAGE function can be used to find the average value or arithmetic mean of values in a selected range of cells.

Syntax: =AVERAGE(number1,number2,…)


number1, number2,……number n are numeric values.They can be numbers or names, arrays, of references that contain numbers.
INDEX: Returns a value or reference of the cell at the intersection of a particular row and column, in a given range.

Syntax: =INDEX(array,row_num,column_num)

array:Array is a range of cells or table.

row_num:The row number in the array from which to return the value.

column_num:It is optional. It is the column number in the array used to return the value.
MATCH function searches for a specified item in a selected range of cells, and then returns the relative position of that item in the range.

Syntax =MATCH(lookup_value,lookup_array,match_type)

lookup_value: The value you want to look for

lookup_array: The table of data contains information from which you want to return the output.

match_type: 1,0 and -1 are three options.

1(Default): It will find the largest value in the range. List must be sorted in ascending order.

0: It will find an exact match

-1: It will find the smallest value in the range. List must be sorted in descending order.
LARGE: Returns the kth largest value in a data set. For example, the second largest number from a list of 10 items.

Syntax: =LARGE(array,k)

array: Itis an array or range of cells in a list of data for which you want to find the k-th largest value.

k: is the kth position from largest value to return in the array or range of cells.
Let us take an example:

We have some numbers in column A.We want a formula that will give the average of largest 3 values from the last 5 values.


  • In cell B2, the formula would be
  • =AVERAGE(LARGE(INDEX(A2:A10,MATCH(9.99999999999999E+307,A2:A10)-5+1):A10,{1,2,3}))
  • Press Enter on your keyboard.
  • The function will return average of largest 3 values from the last 5 values.


Users are saying about us...

  1. I don’t understand why:
    1– passing for MATCH function 9.999999E+307
    2– the first parameter of LARGE function must array or range. So why we can use: “INDEX…:A10″, because result of INDEX() is 6.

    Please, explain for me. Thanks

  2. Hi Hieu,

    9.99999999999999E+307 is a biggest number in Excel.
    In this example =MATCH(9.99999999999999E+307,A2:A10). Excel will lookup the last value in range.

    Ashish Mehra

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube