From 3aa6fe7700091a4f7c66e3b359ccbe28d6e744f1 Mon Sep 17 00:00:00 2001 From: Ka Yue Yeung Date: Mon, 24 Aug 2015 10:15:53 +0800 Subject: [PATCH] Fall back when value is #N/A --- Classes/PHPExcel/Cell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Cell.php b/Classes/PHPExcel/Cell.php index c99a3c8b1..83720d343 100644 --- a/Classes/PHPExcel/Cell.php +++ b/Classes/PHPExcel/Cell.php @@ -293,7 +293,7 @@ public function getCalculatedValue($resetLog = true) ); } - if ($result === '#Not Yet Implemented') { + if ($result === '#N/A' || $result === '#Not Yet Implemented') { //echo 'Returning fallback value of '.$this->calculatedValue.' for cell '.$this->getCoordinate().PHP_EOL; return $this->calculatedValue; // Fallback if calculation engine does not support the formula. }