ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. How to Sum the Top 5 (or Top N) Values in Excel

How to Sum the Top 5 (or Top N) Values in Excel

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

To sum the top 5 values in Excel, use =SUM(LARGE(C2:C9,{1,2,3,4,5})). LARGE returns the 1st to 5th largest numbers and SUM adds them. This works in every version of Excel. In Excel 2021 or Microsoft 365 you can write =SUM(LARGE(C2:C9,SEQUENCE(5))) instead, and put the 5 in a cell so you can change it.

Key takeaways

  • =SUM(LARGE(range,{1,2,3,4,5})) adds the five largest numbers and works in every Excel version.
  • Use SEQUENCE(N) in place of the {1,2,3,4,5} list to make N a cell you can change (Excel 2021 or Microsoft 365).
  • Swap LARGE for SMALL to sum the bottom N values.
  • LARGE counts tied values separately, so you always get exactly N values. A SUMIF shortcut can add more than N when there are ties.
  • LARGE returns #NUM! when N is bigger than the number of values in the range.
On this page+
  1. The quick formula to sum the top 5 values
  2. How the formula works
  3. How to sum the top N values with N in a cell
  4. How to sum the bottom 5 values
  5. How to sum the top values for one group
  6. What happens with ties?
  7. Why your top N sum is wrong or shows #NUM!
  8. Practise it

To sum the top 5 values in Excel, combine two functions: LARGE finds the five largest numbers and SUM adds them, as in =SUM(LARGE(C2:C9,{1,2,3,4,5})). It works in every version of Excel and handles ties correctly. This guide shows the formula, how to make "5" a number you can change, how to add only one group's top values, and how to avoid the errors people hit in reports and job tests.

The quick formula to sum the top 5 values#

Nest LARGE inside SUM and give LARGE a list of positions. All the examples use this sales table in A1:C9:

ABC
1RepRegionSales
2AnaNorth4,200
3BenSouth3,650
4CarlaNorth5,100
5DmitriSouth2,800
6EsiNorth4,750
7FelixSouth3,900
8GraceNorth6,100
9HiroSouth3,300

In an empty cell, type:

Excel formula
=SUM(LARGE(C2:C9,{1,2,3,4,5}))

The result is 24,050: 6,100 + 5,100 + 4,750 + 4,200 + 3,900. You don't need to sort the data first, and you don't need Ctrl+Shift+Enter, even in older Excel.

For the top 3, shorten the list: =SUM(LARGE(C2:C9,{1,2,3})) returns 15,950.

How the formula works#

LARGE returns the k-th largest number in a range. Its syntax is =LARGE(array, k). On its own, =LARGE(C2:C9,1) returns 6,100 and =LARGE(C2:C9,2) returns 5,100. The guide to LARGE and SMALL for top N values covers the function in detail.

The curly brackets {1,2,3,4,5} are an array constant: a fixed list of values typed straight into the formula. When you give LARGE a list for k, it returns a list of answers:

kLARGE returns
16,100
25,100
34,750
44,200
53,900

SUM then adds that list, the same way it adds a range. If SUM is new to you, the guide to the SUM function and AutoSum starts from the basics, and the SUM function guide is a quick reference.

You can also write it the long way, which some people find easier to read:

Excel formula
=LARGE(C2:C9,1)+LARGE(C2:C9,2)+LARGE(C2:C9,3)+LARGE(C2:C9,4)+LARGE(C2:C9,5)

It gives the same 24,050, but it gets long fast for a top 10.

How to sum the top N values with N in a cell#

Make N a cell when you want to switch between top 3, top 5 and top 10 without editing the formula. Type the number in F1, then use SEQUENCE to build the list of positions:

Excel formula
=SUM(LARGE(C2:C9,SEQUENCE(F1)))

With 5 in F1, the result is 24,050. Change F1 to 3 and it becomes 15,950. SEQUENCE(5) returns the list 1, 2, 3, 4, 5, so it replaces the typed {1,2,3,4,5}. SEQUENCE needs Excel 2021 or Microsoft 365.

In Excel 2019 and older, build the list with ROW and INDIRECT, and use SUMPRODUCT so you don't need Ctrl+Shift+Enter:

Excel formula
=SUMPRODUCT(LARGE(C2:C9,ROW(INDIRECT("1:"&F1))))

ROW(INDIRECT("1:5")) returns the row numbers 1 to 5, which act as the positions. SUMPRODUCT adds the results; see how SUMPRODUCT works and the SUMPRODUCT function guide.

In Microsoft 365 or Excel 2024 you can also sort and take the first N: =SUM(TAKE(SORT(C2:C9,,-1),F1)). It returns the same total.

How to sum the bottom 5 values#

Swap LARGE for SMALL. SMALL returns the k-th smallest number, so this adds the three lowest sales:

Excel formula
=SUM(SMALL(C2:C9,{1,2,3}))

The result is 9,750: 2,800 + 3,300 + 3,650. Bottom-N sums are useful for finding the weakest products or the cheapest quotes.

How to sum the top values for one group#

Filter the numbers first, then take the largest. To add the two best North sales in Excel 2021 or Microsoft 365:

Excel formula
=SUM(LARGE(FILTER(C2:C9,B2:B9="North"),{1,2}))

FILTER keeps only the North rows (4,200, 5,100, 4,750 and 6,100), and LARGE picks the top two. The result is 11,200 (6,100 + 5,100). Change "North" to "South" and you get 7,550 (3,900 + 3,650).

In older Excel, multiply by the condition instead:

Excel formula
=SUMPRODUCT(LARGE((B2:B9="North")*C2:C9,{1,2}))

(B2:B9="North") is TRUE or FALSE for each row. Multiplying turns South sales into 0 and keeps North sales as they are, so LARGE only sees North values at the top. This only works when the numbers are positive and the group has at least N values.

What happens with ties?#

LARGE counts each tied value as its own position, so SUM(LARGE(...)) always adds exactly N numbers. If two reps both sold 3,900, LARGE(C2:C9,5) and LARGE(C2:C9,6) would both return 3,900, and the top 5 would include just one of them.

You may see a shorter shortcut online:

Excel formula
=SUMIF(C2:C9,">="&LARGE(C2:C9,5))

It adds every value at or above the 5th largest. On the table above it also returns 24,050. With a tie at the cut-off, though, it adds all tied values, so you could get six or seven numbers in a "top 5". Use it only when you want ties included on purpose.

If you need to see which rows are in the top 5, not just the total, build a list with the top N list formula, or colour the rows with top 10 conditional formatting.

Why your top N sum is wrong or shows #NUM!#

Most problems come from the data or the size of N:

  1. #NUM! error. LARGE fails when k is bigger than the number of values. A top 10 from 8 sales returns #NUM!. Cap N with MIN: =SUM(LARGE(C2:C9,SEQUENCE(MIN(F1,COUNT(C2:C9))))).
  2. Blank cells and text. LARGE ignores them, which is usually what you want. A blank is never treated as 0.
  3. Numbers stored as text. Imported figures that are really text are skipped, so the total looks too low. Convert them with VALUE or Text to Columns.
  4. Semicolons in some regions. In countries that use a comma as the decimal sign, Excel uses semicolons between arguments and a different separator inside array constants. If {1,2,3} gives an error, use SEQUENCE(3) or the long LARGE+LARGE form.
  5. Wrong range. A range that stops one row short quietly drops a value. Check that the range covers every row.

Practise it#

LARGE is a favourite in Excel interviews, because "what is the second-highest value?" and "add the top 3" test whether you know more than SUM. Practise LARGE and SMALL in a live spreadsheet: you type the formula and it checks your answer instantly. If you want a refresher on totals first, practise SUM and AutoSum. Then try the exercise on this page and add up the top 3 sales.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Your manager wants the combined sales of the top 3 reps. Click F2 and use SUM and LARGE on C2:C9, then press Enter.

fx
ABCDEFG
1
Rep
Region
Sales
2
Ana
North
4200
Top 3 total
3
Ben
South
3650
4
Carla
North
5100
5
Dmitri
South
2800
6
Esi
North
4750
7
Felix
South
3900
8
Grace
North
6100
9
Hiro
South
3300
10
11
12

Tip: Give LARGE the list {1,2,3} so it returns the three largest values, then wrap it in SUM.

Practise this in a lesson

LessonLARGE and SMALLFind the second-highest, top 3 or second-lowest value, a favorite interview question.LessonSUM and AutoSumAdd up a column of numbers with SUM, then let AutoSum write the formula for you.Function guideSUMAdd up columns, rows and separate ranges with Excel's SUM function. Clear examples, common mistakes and a live practice exercise.Function guideSUMPRODUCTMultiply columns and add the results in one step with SUMPRODUCT. Totals, weighted averages, conditions, and a live exercise to try.

Frequently asked questions

How do I sum the top 5 values in Excel?

+

Use =SUM(LARGE(range,{1,2,3,4,5})). LARGE picks out the five largest numbers and SUM adds them. It works in all versions of Excel without Ctrl+Shift+Enter.

How do I sum the top N values when N changes?

+

Put N in a cell, such as F1, and use =SUM(LARGE(C2:C9,SEQUENCE(F1))) in Excel 2021 or Microsoft 365. In older versions use =SUMPRODUCT(LARGE(C2:C9,ROW(INDIRECT("1:"&F1)))).

How do I sum the bottom 3 values in Excel?

+

Use SMALL instead of LARGE: =SUM(SMALL(C2:C9,{1,2,3})). SMALL returns the 1st, 2nd and 3rd smallest numbers, and SUM adds them.

Why does my top N sum return #NUM!?

+

LARGE returns #NUM! when you ask for more values than the range contains. Asking for the top 10 from a list of 8 numbers fails. Use MIN(N, COUNT(range)) to cap N.

Can I sum the top 3 values for one category only?

+

Yes. In Excel 2021 or Microsoft 365, filter first: =SUM(LARGE(FILTER(C2:C9,B2:B9="North"),{1,2,3})). In older versions, =SUMPRODUCT(LARGE((B2:B9="North")*C2:C9,{1,2,3})) works when the values are positive.

Sources

  • LARGE function - Microsoft Support
  • SUM function - Microsoft Support
  • SEQUENCE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The quick formula to sum the top 5 values
  2. How the formula works
  3. How to sum the top N values with N in a cell
  4. How to sum the bottom 5 values
  5. How to sum the top values for one group
  6. What happens with ties?
  7. Why your top N sum is wrong or shows #NUM!
  8. Practise it

Keep reading

Math· 6 min read

Find the Top 3 (or Second Highest) With LARGE and SMALL

The Excel LARGE function returns the k-th largest number in a range: =LARGE(B2:B9,2) gives the second highest. SMALL works the same way from the bottom, so =SMALL(B2:B9,2) gives the second lowest. To total the top 3, add three LARGE results with k = 1, 2 and 3.

Dynamic arrays· 6 min read

Make a Top 5 List With SORT and FILTER

To make a top 5 list with a formula, keep the rows whose value is at least the 5th largest, then sort them: =SORT(FILTER(A2:C9,C2:C9>=LARGE(C2:C9,5)),3,-1). Change 5 to 10 for a top 10 list. It spills the whole rows, largest first, and includes ties. It needs Excel 2021, Excel 2024 or Microsoft 365.

Math· 6 min read

SUMPRODUCT in Excel: Multiply and Add in One Step

SUMPRODUCT multiplies matching items in two or more ranges and adds up the results. =SUMPRODUCT(C2:C7,D2:D7) multiplies each quantity by its price and returns the total, with no helper column. It also handles conditions, such as =SUMPRODUCT((B2:B7="North")*C2:C7*D2:D7), and works in every version of Excel.

More on math

  • How to Sum Only Visible (Filtered) Cells in Excel
  • Why Your Excel Total Is Wrong (and How to Fix It)
  • How to Calculate a Weighted Average in Excel
  • Absolute References and the $ Sign in Excel
  • Absolute Value in Excel: How the ABS Function Works
  • AutoSum in Excel: The Alt+= Shortcut Explained
All math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free