Confident CellsExcel practice Start free

Tracking data drops: practice exercises

Change since the last drop, the latest grade in a row with XLOOKUP, flags for anyone 2 grades down, % on or above target by class, grades like 5+. 5 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.

Your turn

Columns C and D are each pupil's working-at grade in the Autumn and Spring data drops. In E2, work out the change since the last drop, so that a pupil who went up shows a positive number and one who went down shows a negative one.

ABCDE
1PupilTargetAutumnSpringChange
2Imani Begum534
3Isla Nowak999
4Rosa Wright232
5Mohammed Edwards764
6Mia Wilson888
7Finley Green224
8Sofia Jones667
9Oliver Mensah211
10Arjun Begum978
11Oscar Smith311
12Amira Shah644
13Hana Shah543
14Leah Clarke654
15Priya Price424
16Daniel Price545
17Ellie Ali888
18Poppy Smith988
19Tyrese Patel677
20Sami Edwards757
21Kacper Baker886

How it works

Most schools collect a working-at grade for every pupil a few times a year: a data drop. Each drop gets a column, so a pupil's row shows how they've moved. Heads of department look for who has dropped, and the % of each class on or above target.

Some pupils miss a drop, or join part way through the year, so their row has gaps. XLOOKUP can search a row from the end, so =XLOOKUP(TRUE,B2:E2<>"",B2:E2,,0,-1) finds the last grade that isn't blank. How far down counts as a concern is your school's call, so it sits in a cell.

=E2-D2 =XLOOKUP(TRUE,C2:F2<>"",C2:F2,,0,-1) =IF(C2-D2>=$H$1,"Check","") =COUNTIFS($B$2:$B$30,G2,$F$2:$F$30,">=0")/COUNTIF($B$2:$B$30,G2) =VALUE(LEFT(D2,1))

One column for each drop

A data drop is a grade for every pupil, collected a few times a year. Each drop gets its own column, so the change since the last drop is the newer column take away the older one: a pupil who went from 5 to 6 shows 1, and one who went from 6 to 4 shows −2.

To flag anyone who has gone down a lot, turn it round: older take away newer is how far they fell. Put the number that counts as a concern in a cell, say H1, and compare with that: =IF(C2-D2>=$H$1,"Check",""). Your school decides the number, and it can change it without touching the formula.

Worked example

ABCDEFG
1PupilTargetAutumnSpringSummerLatestFlag
2Amira Khan656
3Jayden Clarke545
4Zainab Ali775
  1. =XLOOKUP(TRUE,C2:E2<>"",C2:E2,,0,-1) in F2. Amira has no Summer grade yet, so her latest is Spring: 6. Jayden missed Autumn but has a Summer grade, so his latest is 5.
  2. =IF(C4-D4>=2,"Check","") in G4. Zainab went from 7 to 5, down 2 grades, so she gets a Check.

The latest grade in a row

With gaps in the row, the last column might be blank, and MAX gives the best grade, not the latest. C2:E2<>"" gives TRUE or FALSE for each cell. XLOOKUP looks for TRUE in that list and brings back the grade in the same place, and -1 as its last argument makes it search from the end. So =XLOOKUP(TRUE,C2:E2<>"",C2:E2,,0,-1) is the last grade that's there.

XLOOKUP needs Excel 2021 or Microsoft 365, on a Mac or Windows. In older versions, =LOOKUP(2,1/(C2:E2<>""),C2:E2) does the same job. To get the name of the drop instead of the grade, bring back the heading row: $C$1:$E$1.

On target, and grades like 5+

A pupil's residual is their grade take away their target, so 0 is on target. The % of a class on or above target counts the class's residuals of 0 or more, then divides by the number in the class: =COUNTIFS(class,G2,residual,">=0")/COUNTIF(class,G2).

Some schools record fine grades such as 5+ or 6−. LEFT(D2,1) takes the first character, but it gives text: it sits on the left of the cell, and a 5 that's text won't compare properly with a target of 5. VALUE(LEFT(D2,1)) turns it into a number.

What you'll practise

  1. Columns C and D are each pupil's working-at grade in the Autumn and Spring data drops. In E2, work out the change since the last drop, so that a pupil who went up shows a positive number and one who went down shows a negative one.
  2. Not every pupil has a grade in every drop: some joined late, some were absent, and the Summer drop isn't finished. In F2, show each pupil's most recent grade: the last one in the row that isn't blank.
  3. The head of department wants a Check next to any pupil whose Spring grade is down by the number in H1 or more since Autumn. In D2, show Check for them and leave the cell blank for everyone else. Pupils who went up don't need a Check.
  4. Column E is each pupil's residual: their latest grade take away their target, so 0 means on target. In H2, work out the percentage of the class in G2 who are on or above target. Your formula will be copied down to H4, and column H is formatted as a percentage.
  5. The department records fine grades such as 5+ and 6-. Column D should hold just the whole grade, as a number, so it can be compared with the target. The formula in D2 gives text that only looks like a number: the grades sit on the left of the cell. Fix it.