Example 1
The second largest sale
B11 =LARGE(B2:B9,2)
Result: 56,300
Priya is first with 62,000, so the second largest is Ana's 56,300.
B11 =LARGE(B2:B9,2) returns 56,300
Returns the kth largest value in a set of numbers, such as the second highest sale or the third biggest order.
Syntax
=LARGE(, )
All versions of Excel, including Excel for Microsoft 365 and Excel for the web.
Try it
Edit the formula in B11 or change the inputs. The sheet recalculates as you type.
B11 =LARGE(B2:B9,2) returns 56,300
LARGE returns the value that sits at position k when the numbers are ranked from highest to lowest. LARGE(B2:B9,1) is the biggest, LARGE(B2:B9,2) the second biggest, and so on. Use it for "top 3 sales", "second-longest delay" or "the fifth-highest score".
You give LARGE a range and a position. It ignores text, blanks and TRUE/FALSE in the range and ranks only the numbers. You do not need to sort the data first.
k = 1 gives the same answer as MAX.#NUM!.#NUM!.Tied values each take a position. If the two highest values are both 62,000, then LARGE(range,1) and LARGE(range,2) both return 62,000, and LARGE(range,3) returns the next lower value. If you want distinct values, such as the top three different salaries, combine LARGE with UNIQUE in Microsoft 365.
An array constant for k returns several results. Wrapped in SUM, it gives the total of the top three:
=SUM(LARGE(B2:B9, {1,2,3}))
In Microsoft 365 you can also spill them: =LARGE(B2:B9, {1;2;3}) fills three cells. SUMPRODUCT also takes the array constant without any special entry in older versions.
LARGE returns the number, not its label. To get the name, match the number back: =INDEX(A2:A9, MATCH(LARGE(B2:B9, 2), B2:B9, 0)). If two rows tie, this finds the first one only. In Microsoft 365, =TAKE(SORTBY(A2:B9, B2:B9, -1), 3) returns the top three with their names.
SMALL works the same way from the bottom. RANK.EQ does the reverse, taking a value and returning its position. For the largest value that meets a condition, use MAXIFS. For the median or a percentile, see MEDIAN and PERCENTILE.INC.
B2:B9.1 is the largest, 2 the second largest, and so on. It must be between 1 and the number of values. Use an array constant such as {1,2,3} to get several at once.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B11 =LARGE(B2:B9,2)
Result: 56,300
Priya is first with 62,000, so the second largest is Ana's 56,300.
B11 =LARGE(B2:B9,2) returns 56,300
Example 2
B11 =SUM(LARGE(B2:B9,{1,2,3}))
Result: 166,500
The array constant {1,2,3} asks for the first, second and third largest. SUM adds 62,000, 56,300 and 48,200.
B11 =SUM(LARGE(B2:B9,{1,2,3})) returns 166,500
Example 3
B7 =LARGE(B2:B5,3)
Result: 85
Two students scored 90, and they take positions 1 and 2. The third largest is therefore 85.
B7 =LARGE(B2:B5,3) returns 85
Example 4
B7 =LARGE(B2:B5,5)
Result: #NUM!
There are only four scores, so there is no fifth largest.
B7 =LARGE(B2:B5,5) returns #NUM!
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B11, return the second highest sales figure.
Answer in B11.
#NUM!. Check the count with COUNT if the data can change size.LARGE(2,B2:B9) treats 2 as the data and the sales as positions, so it returns #NUM!.Use `=SUM(LARGE(B2:B9,{1,2,3}))`. The array constant asks LARGE for the first three positions and SUM adds them.
MAX returns only the single largest value. LARGE returns the value at any position from the top, and `LARGE(range,1)` gives the same answer as MAX.
Use `=INDEX(A2:A9,MATCH(LARGE(B2:B9,2),B2:B9,0))`. If two rows tie, it returns the first matching name.
k is less than 1 or greater than the number of values in the range, or the range has no numbers in it.
Not on its own. In Microsoft 365 use `=LARGE(FILTER(B2:B9,A2:A9="East"),2)`. In older versions, use `=LARGE(IF(A2:A9="East",B2:B9),2)` confirmed with Ctrl+Shift+Enter.
LARGE is taught in Data analysis with formulas, lesson 19: AGGREGATE: ignore errors. Each lesson is a short, graded exercise like the one above.