Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1=ISNUMBER(LEFT(A2,2)*1) | AChecks that a date was entered as a real date, because spreadsheets store real dates as numbers | |
| 2=ISNUMBER(B2) | BLEFT returns text, even when it looks like digits, so ISNUMBER gives FALSE. Multiply by 1 first, as in ISNUMBER(LEFT(A2,2)*1). | |
| 3A format check on a code of two letters then three digits can test the last three characters with RIGHT | C=ISNUMBER(RIGHT(A2,3)*1) | |
| 4A value can pass a format check and still be wrong, so the check does not prove the data is correct | DTests whether the first two characters of a code are numbers, which would be wrong for a code that should start with letters | |
| 5=ISNUMBER(LEFT(A2,2)) to check a code starts with two digits | EAB123 passes the pattern but is not a real student ID | |
| 6Date entered as 31/02/2025 is accepted because it looks like dd/mm/yyyy | FThe pattern looks right but 31 February is not a real date. A format check needs to test for a real date, not just the look of one. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
format check — A validation check that tests a value follows an expected pattern, like two letters then three digits or a real date. A correct pattern does not prove the data is right.=ISNUMBER(VALUE(RIGHT(A2,3)))=IF(LEFT(A2,2)="AB","Prefix OK","Bad")=IF(ISNUMBER(B2),"Real date","Not a date")=RIGHT(A2,3)=AND(ISNUMBER(B2),B2<=TODAY())