About this exercise
A 25-row dataset on one sheet, 2 answer cells, about 5 minutes. Graded in your browser: the value and the formula behind it, with feedback that names the fix.
How to solve it
- G2
=LARGE($D$2:$D$26,F2) - H2
=SMALL($D$2:$D$26,F2)
LARGE(range, k) returns the k-th largest number in the range, so with the rank 1, 2, 3 in column F the same formula filled down gives the first, second and third highest revenue; SMALL does the same from the bottom. The $ signs in $D$2:$D$26 keep the data range fixed while F2 becomes F3 and F4 on the way down — exactly the pattern of a fixed table plus a moving parameter.
Pitfall 1: LARGE and SMALL ignore text and blanks but include zeros, so a rep with 0 revenue shows up as the "lowest" — filter with SMALL(IF(range>0,range),k) if zeros mean "no data". Pitfall 2: ties return the same value twice (LARGE(…,1) and LARGE(…,2) can be equal); when you need distinct values, use SORT(UNIQUE()) or RANK with COUNTIF tie-breakers. Alternatives: MAX and MIN give rank 1 only; in Excel 365, =TAKE(SORT(D2:D26,,-1),3) spills the top three in one cell and =TAKE(SORT(D2:D26),3) the bottom three. To get the rep names next to the numbers, pair with INDEX/MATCH (=INDEX($A$2:$A$26,MATCH(G2,$D$2:$D$26,0))) — covered in the Lookups track.
Other ways that work
- =LARGE($D$2:$D$26,1), =LARGE($D$2:$D$26,2), =LARGE($D$2:$D$26,3) — typing k by hand in each cell
- =TAKE(SORT($D$2:$D$26,,-1),3) in G2 — Excel 365 only, spills the top three
- =MAX($D$2:$D$26) for G2 and =MIN($D$2:$D$26) for H2 — rank 1 only
Common mistakes
Filling =LARGE(D2:D26,F2) down without $ signs: in G3 the range becomes D3:D27 and in G4 D4:D28, so the formulas look at different data and the 2nd and 3rd values come out wrong or blank.
How we grade
Any formula that produces the right result is accepted, unless the task names a function: then another function earns half credit. We compare values with a small tolerance and ignore case and spaces in text. A correct number typed by hand instead of a formula earns half credit. Multi-cell tasks earn full credit at 100% of cells, half credit from 50%. Where it matters, we also change an input cell on a copy of your sheet and check that your formula follows.
Answers computed with Excel 365 rules and checked in our grading engine on November 15, 2026. Author: GridBelt team.