If the Excel YEAR function is not working on your Windows 11/10 PC, change the cell format, convert text dates to real dates, remove hidden spaces from dates, etc.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results