where data is the named range B5:B16. The result is the sum of the largest 3 values (70, 65 55) which is 45.

LARGE function

The LARGE function is designed to return the nth largest value in a range. For example: Normally, LARGE returns just one value. However, if you supply an array constant (e.g. a constant in the form {1,2,3}) to LARGE as the second argument, k , LARGE will return an array of results instead of a single result. For example: will return the 1st, 2nd, and 3rd largest values in the range A1:A10.


In the example shown, the formula in E5 is: Working from the inside out, the LARGE function is configured to return the 3 largest values in the range B5:B16: Because we provide three separate values for k, the result is an array that contains three results: This array is returned directly to the SUMPRODUCT function: With just a single array to process, SUMPRODUCT sums the values in the array and returns 190 as a final result.

SUM alternative

It is common to use SUMPRODUCT in problems like this because SUMPRODUCT can handle arrays natively without any special handling in Legacy Excel. However, in a modern version of Excel, you can use the SUM function instead: Note: this is an array formula and must be entered with Control + Shift + Enter in Legacy Excel.

When n becomes large

As n becomes a larger number, it becomes tedious to enter longer array constants like {1,2,3,4,5,6,7,8,9,10}, etc. In this situation, you can use a formula snippet to create sequential numbers automatically based on the ROW and INDIRECT functions. For example, to sum the largest 10 values in a range, you can use a formula like this: Here, the INDIRECT function converts the text string “1:10” to the range 1:10, which is returned to the ROW function. The ROW function then returns the 10 row numbers that correspond to the range 1:10 in an array like this: Note this is actually a vertical array, as indicated by the semicolons (;) but the LARGE function will happily accept a vertical or horizontal array as the k argument. Once INDIRECT and ROW have been evaluated, the formula is in the same form as before: LARGE will return the 10 largest values, and SUMPRODUCT will return the sum of these values as a final result.

Variable n

To set up a formula where n is a variable in another cell, you can concatenate inside INDIRECT. For example, if A1 contains n, you can use: This allows a user to change the value of n directly on the worksheet and the formula will respond instantly.

With the SEQUENCE function

New in Excel 365, the SEQUENCE function can generate numeric arrays directly in one step, which eliminates the need for the ROW + INDIRECT snippet above, or even a hardcoded array constant. With SEQUENCE, we can write a formula like this: Note: Because SEQUENCE requires the new dynamic array engine in Excel (where array behavior is native), we have also replaced SUMPRODUCT with the SUM function. Read more about SUMPRODUCT and arrays here.

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.