Most Excel lookup functions return the first match, but XLOOKUP can reverse the search direction to return the latest record.
If UNIQUE function is not working in Excel on your Windows 11/10 PC, clear the spill rang, check your Excel version, clean ...