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=XLOOKUP(A2,F2:F10,G2:G10) | ALooks for A2 in the first column of F2:G10 and returns the value from column 2, using an exact match | |
| 2=VLOOKUP(A2,F2:G10,2,FALSE) | B=VLOOKUP(A2,F2:G10,2,FALSE) | |
| 3Show a friendly message when the lookup key is not found in the table | CThe lookup array is the price column instead of the product code column, so the code in A2 will not be found. Search F2:F10 and return G2:G10. | |
| 4Use an exact match so a product code only matches an identical code | D=XLOOKUP(A2,F2:F10,G2:G10,"Not found") | |
| 5=VLOOKUP(A2,F2:G10,2) | EFinds the product code in A2 within F2:F10 and returns the matching price from G2:G10 | |
| 6=XLOOKUP(A2,G2:G10,F2:F10) | FThe match type is missing, so VLOOKUP defaults to an approximate match and may return the wrong price. Add FALSE to make it exact. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
XLOOKUP — A lookup function that finds a key in one column and returns the matching value from another column, such as a price for a product code. It can show a message if no match is found.=XLOOKUP(A2,Products!A:A,Products!C:C)=XLOOKUP(A2,F2:F10,G2:G10,"Not found")=XLOOKUP(A2,F2:F10,G2:G10,"Not found")=VLOOKUP(A2,F2:G10,2,FALSE)=IFERROR(VLOOKUP(A2,F:G,2,FALSE),"None")