Your Excel formula concatenation is with an invalid .
. Assuming you want to display a .
between the Year and the Months then you need to treat it as a string literal ("."
):
$date = date('2014,03,31');
for($i=3;$i<=100;$i++){
$objPHPExcel->getActiveSheet()-setCellValue(
'AQ'.$i,
'=DATEDIF(K'.$i.',DATE('.$date.'),"Y")'.'& "." & '.'DATEDIF(K'.$i.',DATE('.$date.'),"YM")'
);
}