Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Fall back when value is #N/A #649

Open
wants to merge 1 commit into
base: 1.8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Cell.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down