I need the if statement that will determine if the year in two dates in different columns are in the same. The years are formatted mm/dd/yyyy. If true then I need to insert the YEARFRAC formula.

Any help is greatly appreciated