Most Excel lookup functions return the first match, but XLOOKUP can reverse the search direction to return the latest record.
Originally, Excel was not designed to be a real database. Its early database functions were limited in quantity and in quality. And because every record in an Excel database is visible on the screen ...