Most Excel lookup functions return the first match, but XLOOKUP can reverse the search direction to return the latest record.
My weekly spreadsheet audit is gone, and I haven't missed it once.