@teylin Please read the Note
also on Microsoft site XLOOKUP
function. The fourth parameter is implicitely defined (default value), and the formula works in the data structure the OP posted. Otherwise I really like XLOOKUP
because more flexible.