Date Time Functions MSOfficeExcel 2007 Tutorial

Input the formula: =YEAR(A1)-YEAR(B1)