Confident CellsExcel practice Start free

Training and compliance matrix: practice exercises

Renewal dates with EDATE and VLOOKUP, Expired and Due soon, % compliant by team, two-way lookup, COUNTBLANK. 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

The table in G2:H7 says how many months each course lasts before it has to be done again. In D2, work out the date each person's training is due for renewal. Your formula will be copied down to D15.

ABCDEFGH
1Staff memberCourseCompletedRenewal dueCourseRenew after (months)
2LucyFire safety14/08/2023Fire safety24
3JessFirst aid at work21/10/2026First aid at work36
4HamzaDisplay screen equipment12/02/2026GDPR12
5BenFire safety15/07/2026Safeguarding12
6NadiaGDPR23/04/2026Manual handling12
7MariaDisplay screen equipment25/04/2024Display screen equipment12
8DevFire safety30/06/2025
9PriyaFire safety01/07/2025
10RachelFirst aid at work05/09/2023
11SunilDisplay screen equipment18/07/2025
12EllaGDPR12/04/2025
13TomGDPR27/03/2026
14LiamSafeguarding03/02/2025
15MarekManual handling14/07/2024

How it works

A training matrix shows who has done which course and when it runs out. EDATE moves a date on by whole months, so =EDATE(C2,36) is three years after C2. HSE says a first aid at work certificate lasts three years. How often fire safety, GDPR, safeguarding and manual handling are renewed is up to each organisation. So the renewal periods here sit in a table you can change to match your own policy.

With staff down the side and courses across the top, INDEX with two MATCHes finds one person's date for one course. COUNTBLANK counts the courses someone has never done.

=EDATE(C2,VLOOKUP(B2,$G$2:$H$4,2,FALSE)) =IFS(B2<$F$1,"Expired",B2<=$F$1+$F$2,"Due soon",TRUE,"In date") =COUNTIFS(B2:B25,F2,D2:D25,"<>Expired")/COUNTIF(B2:B25,F2) =INDEX($B$2:$D$4,MATCH(G2,$A$2:$A$4,0),MATCH(H2,$B$1:$D$1,0)) =COUNTBLANK(B2:D2)

Renewal dates

Amira did first aid at work on 14 March 2024. HSE says a first aid at work certificate lasts three years, so she needs to requalify by 14 March 2027. =EDATE(C2,36) moves the date on 36 months.

Each course has its own period, so keep them in a small table and look the months up: =EDATE(C2,VLOOKUP(B2,$G$2:$H$7,2,FALSE)). Adding 36 straight to the date would add 36 days. Apart from first aid, the periods are your organisation's policy, so check yours.

Worked example

ABCDEFGH
1StaffCourseCompletedRenewal dueCourseMonths
2AmiraFirst aid at work14/03/2024Fire safety12
3BenFire safety02/12/2025First aid at work36
4CaraGDPR20/01/2025GDPR24
  1. =EDATE(C2,VLOOKUP(B2,$G$2:$H$4,2,FALSE)) in D2. Amira's first aid is due on 14/03/2027. Ben's fire safety lasts 12 months, so it's due on 02/12/2026, and Cara's GDPR training on 20/01/2027.

Expired, Due soon or In date

Today is 1 December 2026, and anything due in the next 60 days counts as due soon. 60 days on is 30 January 2027. The dates on each boundary are the ones to watch.

ABCDEF
1StaffRenewal dueStatusToday01/12/2026
2Amira14/03/2027Due soon (days)60
3Ben02/12/2026
4Cara30/01/2027
5Dev15/11/2026
6Ewa01/12/2026
  1. =IFS(B2<$F$1,"Expired",B2<=$F$1+$F$2,"Due soon",TRUE,"In date") in C2. Dev's date has passed: Expired. Ewa's is today, so it isn't expired yet: Due soon. Cara's is exactly 60 days away and Ben's is tomorrow: both Due soon. Amira is In date.

Compliance by team

Finance has 8 training records: 5 in date, 1 due soon and 2 expired. Due soon still counts as compliant, so 6 of the 8 are: 75%.

In a formula, count the team's records that aren't expired and divide by all the team's records: =COUNTIFS(B2:B25,F2,D2:D25,"<>Expired")/COUNTIF(B2:B25,F2). "<>Expired" means “not Expired”.

A training matrix

Staff down the side, courses across the top. A blank means never done, and N/A means the job doesn't need it.

ABCDEFGHI
1StaffFire safetyFirst aidGDPRNot doneStaffCourseCompleted
2Amira10/02/202605/05/2025BenGDPR
3Ben03/03/2026N/A12/09/2025
4CaraN/A
  1. =INDEX($B$2:$D$4,MATCH(G2,$A$2:$A$4,0),MATCH(H2,$B$1:$D$1,0)) in I2. Ben is the 2nd person and GDPR the 3rd course, so INDEX takes row 2, column 3 of the dates: 12/09/2025. XLOOKUP(H2,$B$1:$D$1,XLOOKUP(G2,$A$2:$A$4,$B$2:$D$4)) does the same.
  2. =COUNTBLANK(B2:D2) in E2. Amira has never done first aid: 1. Ben's N/A isn't empty, so he has 0. Cara has 2.

What you'll practise

  1. The table in G2:H7 says how many months each course lasts before it has to be done again. In D2, work out the date each person's training is due for renewal. Your formula will be copied down to D15.
  2. In D2, show Expired if the renewal date is before today's date in H1. Show Due soon if it's on H1 or within the number of days in H2 after it (up to and including H1 + H2). Show In date otherwise. Use H1 and H2 in your formula so it still works tomorrow.
  3. A training record is compliant if it isn't Expired: Due soon still counts. In G2, work out the % of the team in F2's training records that are compliant. Your formula will be copied down to G5.
  4. Columns B to F are a training matrix: each cell is the date that person last did that course. Managers have asked for the dates in H and I. In J2, look up the date for the person in H2 and the course in I2. Your formula will be copied down to J5.
  5. In this matrix a blank means the person has never done the course, and N/A means their job doesn't need it. In G2, count how many courses each person has never done. N/A isn't a gap.