Skip to content

LARGE

Returns the kth largest value in a set of numbers, such as the second highest sale or the third biggest order.

Syntax

=LARGE(, )

Statistical

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
A
B
C
1
Rep
Sales
2
Ines
48,200
3
Tom
31,750
4
Priya
62,000
5
Marco
42,900
6
Lena
37,400
7
Sam
22,650
8
Ana
56,300
9
Jo
39,100
10
11
Second highest
56,300

B11 =LARGE(B2:B9,2) returns 56,300

How LARGE works

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".

How it works

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.
  • If k is greater than the count of numbers, or less than 1, LARGE returns #NUM!.
  • An empty range, or one with no numbers, returns #NUM!.
  • Use whole numbers for k.

Ties

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.

Several values at once

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.

Finding who holds the value

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.

Related functions

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.

Arguments

array
The range or array of numbers to search, such as B2:B9.
k
The position from the top: 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.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

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
A
B
C
1
Rep
Sales
2
Ines
48,200
3
Tom
31,750
4
Priya
62,000
5
Marco
42,900
6
Lena
37,400
7
Sam
22,650
8
Ana
56,300
9
Jo
39,100
10
11
Second highest
56,300

B11 =LARGE(B2:B9,2) returns 56,300

Example 2

Total of the top three

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
A
B
C
1
Rep
Sales
2
Ines
48,200
3
Tom
31,750
4
Priya
62,000
5
Marco
42,900
6
Lena
37,400
7
Sam
22,650
8
Ana
56,300
9
Jo
39,100
10
11
Top three total
166,500

B11 =SUM(LARGE(B2:B9,{1,2,3})) returns 166,500

Example 3

Tied values take separate positions

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
A
B
C
1
Student
Score
2
S1
90
3
S2
85
4
S3
90
5
S4
70
6
7
Third highest
85
8

B7 =LARGE(B2:B5,3) returns 85

Example 4

k larger than the number of values

B7 =LARGE(B2:B5,5)

Result: #NUM!

There are only four scores, so there is no fifth largest.

B7
A
B
C
1
Student
Score
2
S1
90
3
S2
85
4
S3
90
5
S4
70
6
7
Fifth highest
#NUM!
8

B7 =LARGE(B2:B5,5) returns #NUM!

Your turn.

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.

B11
A
B
C
1
Rep
Sales
2
Ines
48,200
3
Tom
31,750
4
Priya
62,000
5
Marco
42,900
6
Lena
37,400
7
Sam
22,650
8
Ana
56,300
9
Jo
39,100
10
11
Second highest
12
Top three total

Common mistakes

  • If k is zero, negative or larger than the number of numeric cells, LARGE returns #NUM!. Check the count with COUNT if the data can change size.
  • Ties each take a position. The second largest can equal the largest. If you need distinct values, use UNIQUE first in Microsoft 365.
  • LARGE returns the value, not its label. Use INDEX and MATCH, or XLOOKUP, to find the name behind it; the first row wins when values tie.
  • The arguments are array first, then k. LARGE(2,B2:B9) treats 2 as the data and the sales as positions, so it returns #NUM!.
  • Numbers stored as text are ignored, so the ranking can skip values you expect. Convert them first.

Questions people ask

How do I sum the top 3 values?

Use `=SUM(LARGE(B2:B9,{1,2,3}))`. The array constant asks LARGE for the first three positions and SUM adds them.

What is the difference between LARGE and MAX?

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.

How do I find the name that goes with the 2nd largest value?

Use `=INDEX(A2:A9,MATCH(LARGE(B2:B9,2),B2:B9,0))`. If two rows tie, it returns the first matching name.

Why does LARGE return #NUM!?

k is less than 1 or greater than the number of values in the range, or the range has no numbers in it.

Can LARGE ignore a condition, such as one region?

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.

Learn LARGE in a real sheet.

LARGE is taught in Data analysis with formulas, lesson 19: AGGREGATE: ignore errors. Each lesson is a short, graded exercise like the one above.