Мой код:
$objPHPExcel->setActiveSheetIndex($index)->setCellValue('A1', '=SUM(2;2)');
ошибка:
PHPExcel_Calculation_Exception
A1 -> Ошибка формулы: произошла непредвиденная ошибка (extensions \ phpexcel \ Classes \ PHPExcel \ Cell.php: 300)
# 0 \ extensions \ phpexcel \ Classes \ PHPExcel \ Worksheet.php (754 ): PHPExcel_Cell-> getCalculatedValue ()
Расширения # 1 \ phpexcel \ Classes \ PHPExcel \ Writer \ Excel2007 \ Worksheet.php (373): PHPExcel_Worksheet-> calculateColumnWidths ()
# 2 \ extensions \ phpexcel \ Classes \ PHPExcel \ Writer \ Excel2007 \ Worksheet.php (80): PHPExcel_Writer_Excel2007_Worksheet -> _ writeCols (Object (PHPExcel_Shared_XMLWriter), Object (PHPExcel_Worksheet))
# 3 расширения \ phpexcel \ Classes \ PHPExcel \ Writer \ Excel2007.php (304): PHPExcel_Writer_Excel2007_Worksheet-> writeWorksheet (Object (PHPExcel_Worksheet), Array, false)
# 4