Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

Functions

LARGE and SMALL in Excel: Find the Nth Value

By the LogicExcel Editorial Team16 min read3,016 wordsPractice this

LARGE returns the nth highest number in a list and SMALL returns the nth lowest. Write =LARGE(C2:C11,2) for the second highest score, or =SMALL(C2:C11,3) for the third lowest. The second argument is a rank, where 1 is the biggest for LARGE and the smallest for SMALL, so it is not the row number.

Ready to practice?

Apply what you just learned with interactive exercises.

Start Lesson 19

This page covers the syntax, top 3 and bottom 3 lists, what happens with ties, how to find the person behind a score, and the errors that appear when the rank is wrong.

TL;DR

  • =LARGE(range, k) gives the kth largest value and =SMALL(range, k) the kth smallest. k is a rank, not a position in the list.
  • LARGE(range,1) is the same as MAX, and SMALL(range,1) the same as MIN. The extra functions earn their place from rank 2 onward.
  • For a top 3 total, put the ranks in curly brackets: =SUM(LARGE(C2:C11,{1,2,3})).
  • Ties repeat. If two students share the top score, the 1st and 2nd largest are the same number.
  • A rank of 0, a negative rank or a rank bigger than the count returns #NUM!.
  • To get the name beside a score, combine INDEX and MATCH, and break ties with a helper column.

Table of Contents

The sample data used on this page

The sheet is one term's test results for ten students in two classes. Column A is the student, B is the class and C is the score out of 100. Two students share 95 and two share 88, which is deliberate, because ties are where LARGE and SMALL cause the most confusion.

ABC
1StudentClassScore
2Amina10A88
3Bongani10B72
4Carla10A95
5Dumisani10B88
6Esther10A61
7Farouk10B79
8Gugu10A95
9Hanif10B54
10Ingrid10A83
11Jabu10B67
Sorted from the top, the scores run 95, 95, 88, 88, 83, 79, 72, 67, 61, 54.

LARGE and SMALL syntax and arguments

=LARGE(array, k)

=SMALL(array, k)

ArgumentRequired?What it does
arrayRequiredThe range or array of numbers to rank. Text and blanks are ignored.
kRequiredThe rank to return. For LARGE, 1 is the largest. For SMALL, 1 is the smallest. It must be at least 1 and no more than the count of numbers.
Both arguments are required. Leaving out k, as in =LARGE(C2:C11), is not accepted by Excel. The array does not need to be sorted, and sorting it first changes nothing.

LARGE and SMALL examples, from second place to a top 3 total

Find the second largest value

In an empty cell enter:

=LARGE(C2:C11,2)

It returns 95. That is not a mistake. Carla and Gugu both scored 95, so the second largest value is also 95. The first and third are:

=LARGE(C2:C11,1) returns 95 and =LARGE(C2:C11,3) returns 88.

Find the smallest, second smallest and third smallest

SMALL works from the bottom. =SMALL(C2:C11,1) returns 54 (Hanif). =SMALL(C2:C11,2) returns 61 and =SMALL(C2:C11,3) returns 67. The rank argument counts from the end of the list that the function is named for: the second smallest is the second from the bottom.

Get the top 3 total

Pass several ranks at once as an array constant. Each rank goes in curly brackets, separated by commas:

=SUM(LARGE(C2:C11,{1,2,3}))

It returns 278, which is 95 + 95 + 88. LARGE returns three numbers, and SUM adds them. This works in every version without special entry. The same idea gives an average of the top 3:

=AVERAGE(LARGE(C2:C11,{1,2,3}))

That returns 92.667. And an average of the bottom 3:

=AVERAGE(SMALL(C2:C11,{1,2,3}))

That returns 60.667, from 54, 61 and 67.

Spill a top 3 list into cells

To see the three values themselves, enter the array version in one cell:

=LARGE(C2:C11,{1,2,3})

In Microsoft 365 and Excel 2021, the answer spills across three cells: 95, 95 and 88. In Excel 2019 and earlier, select three cells in a row first, type the formula and press Ctrl+Shift+Enter. A taller list is easier to build in Microsoft 365 with =LARGE(C2:C11,SEQUENCE(3)), which spills downward. Our dynamic arrays guide explains spilling.

Find the range from top to bottom

The distance between the best and worst score:

=LARGE(C2:C11,1)-SMALL(C2:C11,1)

It returns 41, from 95 down to 54. The gap between first and second place is =LARGE(C2:C11,1)-LARGE(C2:C11,2), which returns 0 because of the tie.

Find the cut-off for the top 20 percent

A percentage cut-off turns into a rank first. With 10 scores, 20 percent is 2:

=LARGE(C2:C11,ROUNDUP(COUNT(C2:C11)*0.2,0))

It returns 95. COUNT finds how many numbers there are, 0.2 takes a fifth of that, and ROUNDUP makes sure a fraction rounds up to a whole rank. When you add rows, the cut-off updates.

Ties: what LARGE and SMALL do with equal values

LARGE and SMALL count every row, so a tie takes up as many ranks as it has rows. Two students on 95 fill ranks 1 and 2. The next score, 88, is rank 3 and also rank 4, because two students share it. Rank 5 is 83.

That has a real consequence for "top 3" reports. Ask which students scored in the top 3 and count them:

=COUNTIF(C2:C11,">="&LARGE(C2:C11,3))

It returns 4, not 3. The third-largest value is 88, and two students hold it. If a prize goes to the top 3, you need a rule for the tie before you hand it out. Excel will not choose for you.

If you want distinct values rather than repeated ones, there are two honest ways. Rank the scores with a tie-breaker, as shown below. Or list unique scores first with the count unique values guide and then use LARGE on that list.

Who holds the nth value: INDEX and MATCH

LARGE returns a score, not a name. The name needs a lookup. The pair INDEX and MATCH finds where the value sits and returns the cell beside it:

=INDEX(A2:A11,MATCH(LARGE(C2:C11,3),C2:C11,0))

It returns Amina. MATCH with 0 as its last argument finds the first row holding 88, and that row belongs to Amina. Dumisani also scored 88, but MATCH stops at the first one it sees. So with a tie, this formula gives the same name for rank 3 and rank 4. That is wrong for rank 4.

The fix is a helper column. Put a unique rank in D2 and fill it down:

=RANK(C2,$C$2:$C$11)+COUNTIF($C$2:C2,C2)-1

RANK gives both 95s a rank of 1. COUNTIF counts how many times the score has appeared so far, from the top of the list down to the current row, and adds the count minus one. The first 95 (Carla) gets 1 + 1 - 1 = 1, and the second 95 (Gugu) gets 1 + 2 - 1 = 2. For Dumisani's 88 the rank is 3, plus 2, minus 1, which is 4. Every student now has a different rank from 1 to 10.

ABCD
1StudentClassScoreRank
2Amina10A883
3Bongani10B727
4Carla10A951
5Dumisani10B884
6Esther10A619
7Farouk10B796
8Gugu10A952
9Hanif10B5410
10Ingrid10A835
11Jabu10B678
Now MATCH on the rank column cannot hit a tie:

=INDEX(A2:A11,MATCH(2,D2:D11,0))

It returns Gugu, the second 95. Change the 2 to a 4 and you get Dumisani. The same pattern with SMALL finds the student with the lowest score: =INDEX(A2:A11,MATCH(10,D2:D11,0)) returns Hanif. For a closer look at the pair, see the INDEX MATCH guide.

The nth value for one group only

Sometimes the question is "the second best in class 10B". LARGE has no condition argument, but an IF inside it filters the list:

=LARGE(IF(B2:B11="10B",C2:C11),2)

It returns 79. IF keeps the scores for 10B and replaces the others with FALSE, which LARGE ignores. The 10B scores sorted are 88, 79, 72, 67, 54, so the second is 79. In Microsoft 365 you press Enter. In earlier versions press Ctrl+Shift+Enter, and Excel wraps the formula in curly brackets. The array formulas guide covers when that is needed.

AGGREGATE is an alternative that needs no array entry: =AGGREGATE(14,6,C2:C11/(B2:B11="10B"),2) also returns 79. The 14 means LARGE and the 6 means ignore errors, which removes the rows where the test fails. Use whichever you can read more easily in six months.

LARGE and SMALL compared with other options

FunctionReturnsExample on this dataUse when
MAX, MINThe single highest or lowest=MAX(C2:C11) returns 95Only first place matters; see the MIN and MAX guide
LARGE, SMALLThe nth highest or lowest=LARGE(C2:C11,3) returns 88Second place, third place, top N
RANKThe rank of a given valueRANK(C2,$C$2:$C$11) gives 3 for AminaYou know the value and want its place
SORT and TAKEA whole sorted listNewer dynamic array functions, not in Excel 2019 or earlierYou want the names and scores together
AGGREGATE(14, ...)LARGE with optionsSee aboveIgnoring errors or hidden rows
PivotTableTop N filterNo formulaA report that needs refreshing
In short, LARGE and SMALL answer "what is the nth value", RANK answers "where does this value sit", and INDEX and MATCH answer "who is it". Many top-N reports use all three together. The broader math functions guide puts them next to ROUND, MOD and ABS.

Which Excel versions have LARGE and SMALL

LARGE and SMALL work in every current version of Excel, in Excel for the web and in Excel for Mac. The array constants such as {1,2,3} work everywhere. What changes between versions is how a formula that returns several values is entered. Microsoft 365 and Excel 2021 spill the results into neighboring cells. Excel 2019 and earlier need Ctrl+Shift+Enter, with the output cells selected first. SEQUENCE exists only in Microsoft 365, Excel 2021 and Excel for the web. AGGREGATE works in Excel 2010 and later.

LARGE and SMALL errors and what causes them

What you seeCauseFix
#NUM!k is bigger than the number of values, as in =LARGE(C2:C11,11)Use a rank from 1 to the count
#NUM!k is 0 or negative, as in =SMALL(C2:C11,0)Start at 1
#NUM!The array has no numbers, as in =LARGE(E2:E11,1) on an empty columnPoint at the number column
Not acceptedk is missing, as in =LARGE(C2:C11)Add the rank
#NAME?A misspelling such as LARGERUse LARGE
Same name for two ranksMATCH found the first of a tieUse a unique rank helper column
Wrong number returnedk was set to the value you want, not its rankCount the rank in sorted order
A number is missing from the rankingIt is stored as textConvert it to a number
k counts from 1, which surprises people who count from 0. SMALL with 0 is an error, and a 0 in the first slot of a LARGE call is the same error. The most reliable check is =SMALL(C2:C11,COUNT(C2:C11)), which should equal the maximum. If it does, your ranks run the full length of the list.

What learners get wrong

Between 26 September and 3 November 2026, learners made 3,292 first attempts across our practice lesson that includes SMALL and LARGE, and 75.6% were right. These counts are first checks of a screen in a page view, not people. The same pattern shows up in the two lessons that teach the functions directly, so this section draws on all three.

Writing the value instead of the rank. In the lesson on MIN, MAX, LARGE and SMALL (Practice Lesson 19), there were 4,715 first attempts, 82.9% right. One screen asks for a LARGE formula on A1:A5 that returns 6. It had 448 first attempts and 79.2% were right. The accepted answer is =LARGE(A1:A5,3). The commonest mistake, 22 times, was =LARGE(A1:A5,6). The learner typed the number they wanted to see in the rank slot, so the formula asks for the sixth largest of five numbers and returns #NUM!. The second argument is a position in the ranking, not the answer. Thirteen left the rank out entirely with =LARGE(A1:A5).

Rank of zero or one. A screen asking for the second smallest value in A1:A4 had 457 first attempts and 76.4% right. The accepted answer is =SMALL(A1:A4,2). Thirty-four wrote =SMALL(A1:A4,0), which is an error because ranks start at 1, and ten wrote =SMALL(A1:A4,1), which is the smallest, not the second. Another 30 left the rank off, as in =SMALL(A1:A4). And on the screen for the second largest, twelve used =MAX(A1:A5). MAX can only ever give first place.

Counting the position instead of the rank. In the practice lesson with SMALL and LARGE, one screen asked for a SMALL function that returns 5. It had 317 first attempts and only 68.8% were right. The accepted answer is =SMALL(A1:A5,2). Twenty-one wrote =SMALL(A1:A5,4) and twenty wrote =SMALL(A1:A5,3). Those return the fourth and third smallest values, not the second. Write the list out in order from the smallest, find where the target value sits, and use that position as the rank.

In Practice Lesson 57, one screen stands out as the hardest. It had 176 first attempts and 54.5% were right, and its accepted answer is the number 58. Fifteen first attempts typed the formula itself, =LARGE(B:B,3), where the screen wanted the number it returns. Run the formula, then enter what the cell shows.

A worked job: a class results leaderboard

The teacher wants a podium, a bottom list for extra support, and a fair way to deal with the tie. Use the results above, with the Rank helper column added.

  1. Add the unique rank. In D2 enter =RANK(C2,$C$2:$C$11)+COUNTIF($C$2:C2,C2)-1 and fill down to D11. The dollar signs lock the full list while the COUNTIF range grows with each row; the absolute reference guide explains why.
  2. Build the podium. In three cells, use =INDEX($A$2:$A$11,MATCH(1,$D$2:$D$11,0)), then the same with 2 and 3. That gives Carla, Gugu and Amina. Their scores come from =LARGE($C$2:$C$11,1) and so on: 95, 95 and 88.
  3. Mention the tie. Dumisani is joint third on 88, so =COUNTIF(C2:C11,">="&LARGE(C2:C11,3)) returns 4. Note it beside the podium, so nobody is surprised.
  4. Find who needs support. =SMALL(C2:C11,1) through 3 give 54, 61 and 67. The names are Hanif, Esther and Jabu. Look them up with the same INDEX and MATCH pattern, using ranks 10, 9 and 8.
  5. Report the top 3 total and the bottom 3 average. =SUM(LARGE(C2:C11,{1,2,3})) returns 278, and =AVERAGE(SMALL(C2:C11,{1,2,3})) returns 60.667.
PlaceStudentScore
1stCarla95
2ndGugu95
3rdAmina88
Joint 3rdDumisani88
The helper column does the heavy lifting here. Without it, MATCH would return Carla twice and the leaderboard would be wrong.

Practice LARGE and SMALL in the browser

Start with Practice Lesson 19. Type a LARGE or SMALL formula and the lesson checks it on the spot. Then try Practice Lesson 20, which mixes in logic functions and TEXTJOIN, and Practice Lesson 57, which uses a big table and asks for real numbers. You can start free on the site, then a pass opens the rest. The functions cheat sheet is a good place to look up the next function.

FAQ

How do I find the second largest value in Excel?

Use =LARGE(C2:C11,2), with your own range. The second argument is the rank, so 2 returns the second largest. If the top two values are equal, the result is the same number as first place, because LARGE counts every row.

How do I find the 3rd smallest value in Excel?

Use =SMALL(C2:C11,3). SMALL counts from the bottom of the list, so 1 is the smallest, 2 the next smallest and 3 the third smallest. The data does not need to be sorted.

What is the opposite of the LARGE function in Excel?

SMALL. It uses the same syntax, =SMALL(array, k), and returns the nth smallest value instead of the nth largest. SMALL(range,1) matches MIN just as LARGE(range,1) matches MAX.

How do I sum the top 3 values in Excel?

Wrap LARGE in SUM and give it three ranks in curly brackets: =SUM(LARGE(C2:C11,{1,2,3})). It returns 278 on the sample scores. For the bottom three, use SMALL with the same ranks. No special entry is needed.

Why does LARGE return #NUM!?

The rank is outside the allowed range. It must be at least 1 and no more than the count of numbers. A rank of 0, a rank of 11 on ten values, or a range with no numbers will all return #NUM!. Check COUNT(range) first.

How do I get the name of the person with the 2nd highest score?

Use INDEX and MATCH around LARGE: =INDEX(A2:A11,MATCH(LARGE(C2:C11,2),C2:C11,0)). If two people share the score, this returns the first. Add a unique rank column, as shown above, and match on that to get the right name every time.

How do I get the largest value for one group only?

Put an IF inside LARGE, such as =LARGE(IF(B2:B11="10B",C2:C11),2), which returns the second highest score in class 10B. In versions before Microsoft 365, enter it with Ctrl+Shift+Enter. For the single highest in a group, MAXIFS (Excel 2019 and later) is simpler.

Sources

Keep going

Guides people read next.