Im trying print Excel file data on a page. To do it i used PHPExcel lib, all works good, beside printing formulas, i have simple example with such formula =SUM(C2:C5)
I print values in a such way:
$val = $cell->getValue();
echo '<td>' . $val . '</td>';
how can i check if $val is a formula?
PHPExcel_Cell_DataType::dataTypeForValue($val); told me that it is a just another one string in my $val
Ofc i can calculate it in a loop, and chek if it`s a last row - insert needed info by hands, but how i can calculate it easy way?
Will be pleased to hear your advice. Thanks.