Edit

Share via


WorksheetFunction.Large(Object, Double) Method

Definition

Returns the k-th largest value in a data set. You can use this function to select a value based on its relative standing. For example, you can use Large to return the highest, runner-up, or third-place score.

public:
 double Large(System::Object ^ Arg1, double Arg2);
public double Large (object Arg1, double Arg2);
Public Function Large (Arg1 As Object, Arg2 As Double) As Double

Parameters

Arg1
Object

Array - the array or range of data for which you want to determine the k-th largest value.

Arg2
Double

K - the position (from the largest) in the array or cell range of data to return.

Returns

Remarks

If array is empty, Large returns the #NUM! error value.

If k ≤ 0 or if k is greater than the number of data points, Large returns the #NUM! error value.

If n is the number of data points in a range, then LARGE(array,1) returns the largest value, and LARGE(array,n) returns the smallest value.

Applies to