Skip to content

Lesson 78 of 92 · Free Excel Course

Excel · Excel function reference

Excel LARGE Function: Syntax, Examples and Common Errors

How the Excel LARGE function finds the 2nd, 3rd or k-th largest value, gets the top 3 in one formula, sums the top N and returns the matching names.

The LARGE function returns the k-th largest number in a range: the biggest, the second biggest, the third biggest and so on. You tell it where the numbers are and which position you want, and it returns that one number. The data doesn't need to be sorted, and LARGE never moves your cells. It's the function behind most "top 3" and "top 10" lists in Excel. Microsoft lists it for Excel for Microsoft 365 (Windows and Mac), Excel for the web, and Excel 2024, 2021, 2019 and 2016, and it has been in Excel for much longer than that. Its mirror image, SMALL, counts from the bottom instead.

Syntax

=LARGE(array, k)
  • array (required): the range or array of numbers to look through, such as B2:B9. Only numbers count. In a range, empty cells, text and TRUE/FALSE are skipped, and that includes numbers stored as text.
  • k (required): the position counting down from the largest. 1 is the largest, 2 the second largest. It can be a number, a cell that holds a number, or an array of positions such as {1,2,3} to get several answers at once. There is no default; leave it out and Excel won't accept the formula.

If the range holds n numbers, LARGE(array,1) returns the largest and LARGE(array,n) returns the smallest. Duplicates each take their own place: if 315 appears twice, it is both the 1st and the 2nd largest.

Examples

Microsoft's example. Microsoft's LARGE page uses ten numbers in two columns, A2:B6. Sorted from largest down they are 7, 6, 5, 5, 4, 4, 4, 3, 3, 2, so the 3rd largest is 5 and the 7th largest is 4. LARGE reads across both columns as one list.

E2=LARGE(A2:B6,3)
ABCDE
1DataDataFormulaResult
234=LARGE(A2:B6,3)5
352=LARGE(A2:B6,7)4
434
556
647
Microsoft's own example: the 3rd and 7th largest of the ten numbers in A2:B6.

The k-th largest, with a tie. The practice workbook has the money eight students raised for a school trip. Leo and Sam both raised $315, so =LARGE(B2:B9,1) and =LARGE(B2:B9,2) both return 315, and the 3rd largest is 260.

E4=LARGE($B$2:$B$9,D4)
ABCDE
1StudentRaised ($)kLARGE
2Maya2401315
3Leo3152315
4Priya1803260
5Sam315
6Nora95
7Theo260
8Ivy150
9Omar205
k sits in column D, so one formula copied down E2:E4 gives the top 3. The dollar signs keep the range fixed.

The top 3 in one formula. In Excel for Microsoft 365 and Excel 2021 or later, give k several positions at once and the answers spill into neighboring cells. {1,2,3} is a row of numbers, so it spills across. SEQUENCE(3) makes a column of 1, 2, 3, so =LARGE(B2:B9,SEQUENCE(3)) spills down instead. To total the top three, wrap it in SUMPRODUCT, which works in every version: =SUMPRODUCT(LARGE(B2:B9,{1,2,3})) returns 315 + 315 + 260 = 890. For a top-5 total, change {1,2,3} to {1,2,3,4,5}, or to SEQUENCE(5) in Microsoft 365 or Excel 2021 and later.

D2=LARGE(B2:B9,{1,2,3})
DEFG
1Top 3Sum of top 3
2315315260890
One formula in D2 spills its three results across D2:F2. G2 has =SUMPRODUCT(LARGE(B2:B9,{1,2,3})).

The names of the top 3. The usual approach looks each LARGE result up: =XLOOKUP(LARGE($B$2:$B$9,D2),$B$2:$B$9,$A$2:$A$9). With a tie it breaks. Both 315s find Leo, because a lookup always stops at the first match, and Sam never appears. In Excel for Microsoft 365, Excel 2024 and Excel for the web, sort the names by the amounts and keep the first three instead: =TAKE(SORTBY(A2:A9,B2:B9,-1),3). In Excel 2021, which has SORTBY but not TAKE, =INDEX(SORTBY(A2:A9,B2:B9,-1),SEQUENCE(3)) does the same job.

F2=TAKE(SORTBY(A2:A9,B2:B9,-1),3)
DEF
1kXLOOKUP on LARGETAKE + SORTBY
21LeoLeo
32LeoSam
43TheoTheo
The lookup returns Leo twice. TAKE + SORTBY spills Leo, Sam, Theo down F2:F4 (ties keep their original order).

In Excel 2019 and earlier, add a helper column that breaks ties, such as =B2-ROW()/1000 in C2, and run LARGE and INDEX/MATCH on that column. Each amount is nudged down by a tiny, different amount, so no two values match.

LARGE vs MAX vs SORT

You wantUse
Only the single biggest number=MAX(B2:B9) (same as =LARGE(B2:B9,1))
The 2nd, 3rd or any k-th biggest number=LARGE(B2:B9,k)
A total or average of the top N=SUMPRODUCT(LARGE(B2:B9,{1,2,3}))
The whole list in order, largest first=SORT(B2:B9,,-1) (Microsoft 365, Excel 2021 or later)
Whole rows of the top N=TAKE(SORT(A2:B9,2,-1),3) (Microsoft 365, Excel 2024 or web)
A value's position in the listRANK

LARGE is the right tool when you need one value, or a few, and must stay compatible with older Excel. SORT and TAKE are easier when you want whole rows.

Common errors

D2=LARGE(A2:A6,6)
ABCD
1Raised ($)FormulaResult
2240=LARGE(A2:A6,6)#NUM!
3315=LARGE(A2:A6,0)#NUM!
4180=LARGE(A2:A6,1)315
5400=COUNT(A2:A6)4
695
A5 holds 400 typed as text (it sits on the left). LARGE skips it, so the largest is 315 and only 4 numbers count.
  • #NUM! because k is too big. There are fewer numbers than the position you asked for. Above, five cells hold only four real numbers, so the 6th largest doesn't exist (and nor would the 5th). Check with =COUNT(range), or wrap the formula: =IFERROR(LARGE(B2:B9,9),"Not enough values").
  • #NUM! because k is 0 or negative. This often happens when k comes from another formula, such as a ROWS counter that starts in the wrong place.
  • #NUM! on an empty range. If the range has no numbers at all, LARGE has nothing to return.
  • #VALUE! when k isn't a number. A k cell that holds text, like "third", can't be used as a position.
  • A wrong answer, no error. Numbers stored as text are skipped without warning. In the grid, 400 is text, so LARGE says the top amount is 315. Convert the column back to numbers (select it, click the warning icon and choose Convert to Number).
  • An error from the data. If any cell in the range holds an error such as #DIV/0!, LARGE returns that error. Fix the source cell or point LARGE at a clean range.
  • Repeated names in a top-3 list. See the tie example above: the values are right, the lookup isn't.

Related functions

  • SMALL: the k-th smallest value, counted from the bottom.
  • RANK: where a number places in a list, the reverse question.
  • SEQUENCE: builds the list of k positions for a spilled top N.
  • Statistics in Excel: median, percentiles, quartiles and the rest of the statistics toolkit.
  • XLOOKUP and INDEX/MATCH: returning the name next to a value.

Try it yourself

Download the practice workbook. The Practice sheet has the eight fundraising totals, including the tie, and yellow cells for the 3rd largest, the top 3 (copied down, then as one spilling formula across and down), their sum in two ways, the top 3 names and a safe 9th largest. The Answers sheet has every working formula.

Frequently asked questions

What is the difference between LARGE and MAX in Excel?

MAX only returns the single biggest number. LARGE can return any position: =LARGE(B2:B9,1) gives the same answer as =MAX(B2:B9), but =LARGE(B2:B9,2) gives the second biggest, =LARGE(B2:B9,3) the third, and so on.

How do I get the top 3 values in Excel with one formula?

Type =LARGE(B2:B9,{1,2,3}) in Excel for Microsoft 365, Excel 2021 or later, and the three values spill across three cells. Use =LARGE(B2:B9,SEQUENCE(3)) if you want them to spill down a column instead. To add them up, use =SUMPRODUCT(LARGE(B2:B9,{1,2,3})).

Why does LARGE return the same value twice?

Because the value really is in the list twice. If two people both raised 315, then 315 is both the 1st and the 2nd largest, so LARGE(range,1) and LARGE(range,2) both return 315. That is correct. The problem shows up when you look up the names: XLOOKUP and MATCH find the first match both times. Use =TAKE(SORTBY(names,values,-1),3) to get each name once.

Why does LARGE give a #NUM! error?

Either k is bigger than the number of numbers in the range (asking for the 9th largest of 8 values), k is 0 or negative, or the range has no numbers at all. Numbers stored as text don't count, so a range of pasted numbers can look full and still be empty to LARGE.

Does the data need to be sorted for LARGE to work?

No. LARGE works on unsorted data and never changes the order of your cells. It just reads the numbers and returns the one in the position you ask for.