Complete the formula to find the price of an item using VLOOKUP.
=VLOOKUP(A2, [1], 2, FALSE)
The table range Prices!A:B correctly points to the columns where the lookup value and price are stored.
Complete the formula to get the employee's department using INDEX and MATCH.
=INDEX(B2:B10, MATCH([1], A2:A10, 0))
The lookup value is in cell A5, which contains the employee ID to find.
Fix the error in the formula to correctly retrieve the product name.
=VLOOKUP(B2, Products!A:C, [1], FALSE)The product name is in the second column of the range, so the column index should be 2.
Fill both blanks to create a formula that finds the sales amount for a given ID.
=INDEX([1], MATCH(E2, [2], 0))
The sales amount is in column C, so Sales!C2:C100 is the array. The IDs are in column A, so Sales!A2:A100 is the lookup range.
Fill all three blanks to create a dictionary comprehension that maps product names to prices for products costing more than $20.
{ [1]: [2] for [3] in products if [2] > 20 }We use product['name'] as the key, product['price'] as the value, and iterate over each product in the list.