Excel's XLOOKUP function isn't just for finding the first match—you can also search from the bottom to retrieve the last occurrence. This is a game-changer for sales reports, transaction histories, attendance records, and data analysis.
How It Works
The key is using the search mode argument set to -1. This tells XLOOKUP to start from the last row and work upward.
Formula Example
=XLOOKUP(F2, A:A, B:B, "Not Found", 0, -1)
- F2: Lookup value
- A:A: Lookup array
- B:B: Return array
- "Not Found": Value if no match
- 0: Exact match
- -1: Search from bottom to top
Why Use It?
- Quickly find the latest transaction for a customer
- Get the most recent entry in a log
- Update a dashboard with the newest data without sorting
Watch the Reel
For a quick visual demonstration, check out the original short from UpgradedZero.
Excel tips and tricks for productivity. Follow UpgradedZero for more.