The FILTER function extracts every matching record while XLOOKUP only returns the first result.
If the Excel YEAR function is not working on your Windows 11/10 PC, change the cell format, convert text dates to real dates, ...