Look things up

Find the last match instead of the first

=XLOOKUP(E2,A2:A5,B2:B5,"Not found",0,-1)

How it works in Excel

The idea in general

You read the list from the bottom up, and stop at the first hit.

What I assumed

Check the result on your own data before relying on it.

Related

Ask another question