Most Excel lookup functions return the first match, but XLOOKUP can reverse the search direction to return the latest record.
You don’t need more effort; you need better formulas.