Explanation: the XLOOKUP function looks up the last name and returns the ID. Multiple Values. The XLOOKUP function in Excel 365/2021 can return multiple values.