Top three deals total (SUMIF + LARGE)

Hard Math
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

The deal register in A2:C9 lists eight closed orders at very different sizes. The bonus pool is paid on the three biggest deals only, so the register has to answer 'top three combined' without a helper column and without sorting anything. Put that total in the Top 3 total cell E2.

The cut-off is not a fixed number: test cases reshuffle which deals land in the top three, so the boundary must be computed from the data itself.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCE
1OrderRepAmountTop 3 total
2ORD-2001Ana Li1250
3ORD-2002Ben Kim800
4ORD-2003Chen Wu960
5ORD-2004Dana Ortiz600
6ORD-2005Eve Novak330
7ORD-2006Ana Li700
8ORD-2007Chen Wu480
9ORD-2008Ben Kim1200

Notes

LARGE(range, 4) is the fourth-largest amount, so SUMIF(range, ">"&LARGE(range, 4)) keeps exactly the values above it — the top three. The widely taught sibling is ">="&LARGE(range, 3) which includes the third value directly. Both rely on strict ordering: if two deals tie at the boundary, the strict version under-counts and the ">=" version over-counts, and the tie-safe answer becomes SUM(LARGE(range, {1,2,3})).

How to approach

Your answer goes in E2. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cell is E2
  2. Amounts are in C2:C9 — there is no rank column to filter on
  3. LARGE(C2:C9, 4) returns the fourth-largest amount; anything strictly above it is a top-three deal
  4. Shape: =SUMIF(?, ">"&LARGE(?, ?), ?)

Official solutions

Show 2 solutions — try it yourself first

Approach 1: strict greater than the fourth-largest

=SUMIF(C2:C9, ">"&LARGE(C2:C9, 4))

LARGE(C2:C9, 4) computes the boundary at run time — the 4th biggest amount — and the criterion adds everything above it. The lavishly named 'top N' pattern is just this with 4 replaced by N+1, so the formula never needs a sorted sheet or a helper column.

Approach 2: greater-or-equal to the third-largest

=SUMIF(C2:C9, ">="&LARGE(C2:C9, 3), C2:C9)

Same three rows, different route: take the 3rd biggest amount as the cut-off and include it. Shorter to reason about, but it quietly breaks when two deals tie at third place — you get four rows instead of three.

Function guide

Related practice

FAQ

How do I sum the top three values without sorting the sheet?

=SUMIF(C2:C9, ">"&LARGE(C2:C9, 4)) totals everything above the 4th biggest value. For the top N, replace 4 with N+1 — the boundary is computed from the data, so the sheet can stay in any order.

What if two deals tie for third place?

Both variants above become wrong: the strict '>' version silently drops the tied pair (you get fewer than three deals) while '>=' quietly takes four. When ties are possible, use =SUM(LARGE(C2:C9, {1,2,3})), which counts positions, not thresholds.

Can I do this with SUMPRODUCT instead?

Yes: =SUMPRODUCT(LARGE(C2:C9, {1,2,3})) or =SUMPRODUCT((C2:C9>=LARGE(C2:C9,3))*C2:C9). SUMIF is shorter to read; SUMPRODUCT is the fallback when you also need OR logic or a case-sensitive match in the same formula.