Date Time Functions MSOfficeExcel 2007 Tutorial

Input the formula: =YEARFRAC(A1,B1,1)