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=LEN(A2)=4 | AThe 4 is in quotes, so it is text, not a number. LEN gives a number, so the comparison will not match. It should be =LEN(A2)=4. | |
| 2=LEN(B2)>=8 | B=LEN(A2)=4 | |
| 3Check that a postcode in cell A2 has exactly 4 characters | C=LEN(TRIM(A2))=4 | |
| 4LEN counts spaces, so test a trimmed value to ignore extra spaces | DGives TRUE if the text in B2 meets a minimum length of 8 characters | |
| 5=LEN(A2=4) | EThe =4 comparison is inside the brackets, so LEN is given a TRUE or FALSE value instead of the cell. The comparison must go after the closing bracket: =LEN(A2)=4. | |
| 6=LEN(A2)="4" | FGives TRUE only if the postcode in A2 has exactly 4 characters |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
=LEN(A2)=4 — LEN counts the characters in a cell, spaces included. Comparing it to a number, like =LEN(A2)=4 for a 4-digit postcode, gives TRUE if the length is right and FALSE if not.=LEN(A2)=4=LEN(A2)=4=LEN(A2)>=3=LEN("AB CD")=5=IF(LEN(A2)=4,"OK","Check")