The Excel LARGE Function

Basic Description

The Excel Large function returns the k'th largest value from an array of numeric values.

The syntax of the function is:

LARGE( array, k )

where the function arguments are:

array-An array of numeric values from which you want to find the k'th largest value.
k-The index (i.e. the function returns the k'th largest value from the supplied array).

The array argument can be supplied to the function either directly, or as a reference to a range of cells containing numeric values. If values in the supplied range of cells are text values, these values are ignored.


Large Function Examples

The following spreadsheet shows the Excel Large function, used to retrieve the 1st, 2nd, 3rd, 4th and 5th largest values from the set of values in cells A1-A5.

 Formulas:
 AB
16=LARGE( A1:A5, 1 )
212=LARGE( A1:A5, 2 )
315=LARGE( A1:A5, 3 )
41=LARGE( A1:A5, 4 )
54=LARGE( A1:A5, 5 )
 Results:
 AB
1615
21212
3156
414
541

Note that in the above example spreadsheet:


Further details and examples of the Excel Large function are provided on the Microsoft Office website.


Large Function Errors

If you get an error from the Excel Large Function, this is likely to be one of the following:

Common Errors
#NUM!-

Occurs if either:

  • The supplied value of k is less than 1 or greater than the number of values in the supplied array
or
  • The supplied array is empty.
#VALUE!-Occurs if the supplied k is non-numeric.

Also, the following problem is encountered by some users:

Common Problem

The Large function returns the wrong value, or returns the #NUM! error, even though the supplied value of k is between 1 and the number of values in the supplied array.

Possible Reason

Text values, including text representations of numbers within the supplied array, are ignored by the Large function. Therefore, this problem may arise if the values in the supplied array are text representations of numbers, instead of actual values.

Solution

This problem can be solved by converting all array values into numeric values. For details of how to do this, see the Convert Text to Number page.