What does XLOOKUP do?
XLOOKUP searches the ID column and returns the corresponding pay rate. It supports exact matches by default.
Workplace example
Employee IDs are in A2:A100 and hourly rates in D2:D100. Look up the rate for the ID in F2.
Example solution
=XLOOKUP(F2,A2:A100,D2:D100)Try the practice question before looking at the solution again. In Excel, formula arguments are separated by commas in many regional settings; your Excel installation may use semicolons.
Practice exercise
Employee IDs are in A2:A100 and hourly rates in D2:D100. Look up the rate for the ID in F2.
Take it further
Add a fourth argument such as "Not found" for missing IDs.
Common mistake: Check that your ranges cover the correct rows and that text criteria are enclosed in quotation marks when required. When copying formulas, pay attention to relative versus absolute references.