Project: A Sales Report
About this lesson
A sales report is three things. A row-level total filled down. A summary block of SUMIFS with locked data ranges and unlocked labels. And a lookup that turns the biggest number into a name.
- build a report with row totals, a summary block and a top-rep lookup.
- lock the right ranges so a summary block fills down correctly.
The idea
The first project is the report every team has. The row total fills down. The summary block reads the labels beside it, so one SUMIFS serves every region. That works only if the data ranges are locked and the label is not, which is the mistake step 3 repairs. The best rep is MAX inside MATCH inside INDEX. The share is the part over the whole.
Nothing here is new. The point of a project is the order. Row numbers first, then the summaries that read them, then the one-line answers a manager will ask for.
The mistake to watch for
A summary block whose ranges moved. SUMIFS copied down without the dollar signs still totals something, so the wrong number looks right. Lock the data ranges and leave the label relative. Then check that the region totals add up to the grand total.
Where this comes up again
This lesson needs JavaScript to run. Everything below is the lesson in full, but you cannot type into the grid or be marked.
In E2, Ada's year: the two quarters added. This fills down to E7.
To begin, type it exactly:
=C2+D2
| Row | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| 1 | Region | Rep | Q1 | Q2 | Year | ||
| 2 | North | Ada | 120 | 135 | |||
| 3 | South | Ben | 98 | 110 | |||
| 4 | North | Cai | 143 | 128 | |||
| 5 | East | Dee | 76 | 88 | |||
| 6 | South | Eli | 130 | 142 | |||
| 7 | North | Fay | 88 | 95 | |||
| 8 | North | ||||||
| 9 | South | ||||||
| 10 | Best rep | ||||||
| 11 | North share | ||||||
| 12 | North over 200 |
Every step
-
In
E2, Ada's year: the two quarters added. This fills down toE7. To begin, type it exactly:=C2+D2. -
In
B8, the North total for the year:SUMIFSover the year column where the region matchesA8. Lock the two ranges so it fills down the summary. -
B9was copied down from a version without the dollar signs. Its ranges moved, and it now totals the wrong cells. It even reads the labels inA8andA9as data. Fix it. -
In
B10, the name of the rep with the highest year.INDEXover the names, withMATCHfinding where theMAXof the year column sits. -
Read
=B8/SUM(E2:E7)and say what share of the year the North had, as a fraction. -
In
B12, write a formula usingCOUNTIFSthat counts the North reps whose year is over 200.