use DATEDIF(startdate,enddate,"Y")


datedif isnt like other normal formulas, excel wont help you try fill in the arguments
here is some reading on it
https://exceljet.net/excel-functions...tedif-function