Complete the formula to find the price of product ID 101 using VLOOKUP.
=VLOOKUP([1], A2:B10, 2, FALSE)
The first argument in VLOOKUP is the value to search for. Here, we want to find product ID 101.
Complete the formula to return the employee name from the ID in cell D2 using INDEX and MATCH.
=INDEX(B2:B20, MATCH([1], A2:A20, 0))
MATCH needs the lookup value, which is the employee ID in cell D2.
Fix the error in this formula to correctly retrieve the city for customer ID in E3.
=VLOOKUP(E3, [1], 3, FALSE)
The lookup range must include the ID column and the city column. Columns A to C cover ID, Name, and City.
Fill both blanks to create a formula that returns the department name for employee ID in F4.
=INDEX([1], MATCH(F4, [2], 0))
The INDEX range is the department names in Departments sheet column B. MATCH looks for employee ID in Employees sheet column A.
Fill all three blanks to create a dictionary-like formula that maps product names to prices, only for prices above 20.
=[1]: [2] for [3] in Products!A2:B20 if [2] > 20}
We loop over each item in Products!A2:B20. 'item' is the loop variable. 'product' is the product name key, and 'price' is the value used and checked.