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.
Functions
LARGE and SMALL in Excel: Find the Nth Value
Ready to practice?
Apply what you just learned with interactive exercises.
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
- LARGE and SMALL syntax and arguments
- LARGE and SMALL examples, from second place to a top 3 total
- Ties: what LARGE and SMALL do with equal values
- Who holds the nth value: INDEX and MATCH
- The nth value for one group only
- LARGE and SMALL compared with other options
- Which Excel versions have LARGE and SMALL
- LARGE and SMALL errors and what causes them
- What learners get wrong
- A worked job: a class results leaderboard
- Practice LARGE and SMALL in the browser
- FAQ
- Sources
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.
| A | B | C | |
| 1 | Student | Class | Score |
| 2 | Amina | 10A | 88 |
| 3 | Bongani | 10B | 72 |
| 4 | Carla | 10A | 95 |
| 5 | Dumisani | 10B | 88 |
| 6 | Esther | 10A | 61 |
| 7 | Farouk | 10B | 79 |
| 8 | Gugu | 10A | 95 |
| 9 | Hanif | 10B | 54 |
| 10 | Ingrid | 10A | 83 |
| 11 | Jabu | 10B | 67 |
LARGE and SMALL syntax and arguments
=LARGE(array, k)
=SMALL(array, k)
| Argument | Required? | What it does |
| array | Required | The range or array of numbers to rank. Text and blanks are ignored. |
| k | Required | The 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. |
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.
| A | B | C | D | |
| 1 | Student | Class | Score | Rank |
| 2 | Amina | 10A | 88 | 3 |
| 3 | Bongani | 10B | 72 | 7 |
| 4 | Carla | 10A | 95 | 1 |
| 5 | Dumisani | 10B | 88 | 4 |
| 6 | Esther | 10A | 61 | 9 |
| 7 | Farouk | 10B | 79 | 6 |
| 8 | Gugu | 10A | 95 | 2 |
| 9 | Hanif | 10B | 54 | 10 |
| 10 | Ingrid | 10A | 83 | 5 |
| 11 | Jabu | 10B | 67 | 8 |
=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
| Function | Returns | Example on this data | Use when |
| MAX, MIN | The single highest or lowest | =MAX(C2:C11) returns 95 | Only first place matters; see the MIN and MAX guide |
| LARGE, SMALL | The nth highest or lowest | =LARGE(C2:C11,3) returns 88 | Second place, third place, top N |
| RANK | The rank of a given value | RANK(C2,$C$2:$C$11) gives 3 for Amina | You know the value and want its place |
| SORT and TAKE | A whole sorted list | Newer dynamic array functions, not in Excel 2019 or earlier | You want the names and scores together |
| AGGREGATE(14, ...) | LARGE with options | See above | Ignoring errors or hidden rows |
| PivotTable | Top N filter | No formula | A report that needs refreshing |
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 see | Cause | Fix |
| #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 column | Point at the number column |
| Not accepted | k is missing, as in =LARGE(C2:C11) | Add the rank |
| #NAME? | A misspelling such as LARGER | Use LARGE |
| Same name for two ranks | MATCH found the first of a tie | Use a unique rank helper column |
| Wrong number returned | k was set to the value you want, not its rank | Count the rank in sorted order |
| A number is missing from the ranking | It is stored as text | Convert it to a number |
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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Place | Student | Score |
| 1st | Carla | 95 |
| 2nd | Gugu | 95 |
| 3rd | Amina | 88 |
| Joint 3rd | Dumisani | 88 |
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.
Excel Math Functions: MIN, MAX, ROUND, MOD, ABS, LARGE, SMALL
Learn Excel math functions: MIN, MAX, ROUND, ROUNDUP, ROUNDDOWN, INT, MOD, ABS, LARGE, SMALL, RANK, CEILING, and FLOOR with examples.
7 min
How to Sort a Pivot Table by Value in Excel
Sort an Excel pivot table by value, largest to smallest, by a specific field, or in a custom order, and fix the cases where the sort won't hold.
13 minExcel FIND Function: Syntax, Examples and Fixes
Use the Excel FIND function to get a character's position, split text at @ or hyphens, find the second match, and fix #VALUE! errors.
16 min