Pull the Latest Record for a Name
Your log adds a new row every time something happens — a status update, a payment, a check-in — and the same name appears many times. You need each name's most recent entry, not its first.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
Normal lookups stop at the first match from the top — the oldest entry in an append-style log. XLOOKUP's sixth argument flips the direction: -1 means search last-to-first, so the first match it finds is the bottom-most row, which is the newest entry when rows are added chronologically. The 0 before it is the match mode (exact match), and the "" is what to return when the name isn't found at all, instead of #N/A. XLOOKUP needs Excel 365 or Excel 2021; Google Sheets has it too, with the same arguments.
When to use it
Use this on status logs, payment histories, ticket updates, and check-in sheets — any table where rows are appended over time and "current state" means the last row for each name.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08